From ec7cf0734e60b0a9c57e50d6377da0f1537a4240 Mon Sep 17 00:00:00 2001 From: josdion Date: Fri, 20 Mar 2020 16:49:16 +0200 Subject: [PATCH] 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. --- views/episodes.tpl | 1 + views/movie.tpl | 1 + 2 files changed, 2 insertions(+) diff --git a/views/episodes.tpl b/views/episodes.tpl index 7a0c829d8..82bb6f739 100644 --- a/views/episodes.tpl +++ b/views/episodes.tpl @@ -734,6 +734,7 @@ const array_release_info = data.release_info; let i; let text = '
...
'; + if (array_release_info.length <= 1) text = '
'; for (i = 0; i < array_release_info.length; i++) { text += '
' + array_release_info[i] + '
'; } diff --git a/views/movie.tpl b/views/movie.tpl index 7b917b7ac..c53849d77 100644 --- a/views/movie.tpl +++ b/views/movie.tpl @@ -674,6 +674,7 @@ const array_release_info = data.release_info; let i; let text = '
...
'; + if (array_release_info.length <= 1) text = '
'; for (i = 0; i < array_release_info.length; i++) { text += '
' + array_release_info[i] + '
'; }