From 0dd1db936b7404ccb5dd5df16d9f4be66cbe81b7 Mon Sep 17 00:00:00 2001
From: morpheus65535 <5130500+morpheus65535@users.noreply.github.com>
Date: Thu, 28 Jun 2018 05:55:07 -0400
Subject: [PATCH] Additional fix to single language
---
views/settings.tpl | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/views/settings.tpl b/views/settings.tpl
index 9547b36a7..231b77014 100644
--- a/views/settings.tpl
+++ b/views/settings.tpl
@@ -1239,6 +1239,8 @@
if ($("#settings_single_language").checkbox('is checked')) {
$("#settings_serie_default_languages").dropdown('clear');
$("#settings_movie_default_languages").dropdown('clear');
+ $("#settings_serie_default_languages").prepend("");
+ $("#settings_movie_default_languages").prepend("");
$("#settings_serie_default_languages").parent().removeClass('multiple');
$("#settings_serie_default_languages").removeAttr('multiple');
$("#settings_movie_default_languages").parent().removeClass('multiple');
@@ -1246,6 +1248,8 @@
} else {
$("#settings_serie_default_languages").dropdown('clear');
$("#settings_movie_default_languages").dropdown('clear');
+ $("#settings_serie_default_languages option[value='None']").remove();
+ $("#settings_movie_default_languages option[value='None']").remove();
$("#settings_serie_default_languages").parent().addClass('multiple');
$("#settings_serie_default_languages").attr('multiple');
$("#settings_movie_default_languages").parent().addClass('multiple');