release info in manual search results

In manual search dialog, show dropdown icon only when there is more than one element in release_info array. Otherwise just show the release info without dropdown button.
This commit is contained in:
josdion 2020-03-20 16:49:16 +02:00
parent d3d7991db7
commit ec7cf0734e
2 changed files with 2 additions and 0 deletions

View File

@ -734,6 +734,7 @@
const array_release_info = data.release_info;
let i;
let text = '<div class="ui fluid accordion"><div class="title"><i class="dropdown icon"></i>...</div><div class="content season">';
if (array_release_info.length <= 1) text = '<div><div class="content season">';
for (i = 0; i < array_release_info.length; i++) {
text += '<div class="ui tiny label" style="margin-bottom: 2px;">' + array_release_info[i] + '</div>';
}

View File

@ -674,6 +674,7 @@
const array_release_info = data.release_info;
let i;
let text = '<div class="ui fluid accordion"><div class="title"><i class="dropdown icon"></i>...</div><div class="content">';
if (array_release_info.length <= 1) text = '<div><div class="content">';
for (i = 0; i < array_release_info.length; i++) {
text += '<div class="ui tiny label" style="margin-bottom: 2px;">' + array_release_info[i] + '</div>';
}