diff options
author | morpheus65535 <[email protected]> | 2018-06-28 05:47:17 -0400 |
---|---|---|
committer | morpheus65535 <[email protected]> | 2018-06-28 05:47:17 -0400 |
commit | f948814696e50bb7c8c172d168fcb599864e4b63 (patch) | |
tree | dbe111fe8329a1ff9e6173bf129d399dd9e1f636 /views | |
parent | 74403be4e84ea1c4d165d994dc7487ae3556f234 (diff) | |
download | bazarr-f948814696e50bb7c8c172d168fcb599864e4b63.tar.gz bazarr-f948814696e50bb7c8c172d168fcb599864e4b63.zip |
Fix a bug in with single language mode enabled #78
Diffstat (limited to 'views')
-rw-r--r-- | views/settings.tpl | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/views/settings.tpl b/views/settings.tpl index 6459b0180..9547b36a7 100644 --- a/views/settings.tpl +++ b/views/settings.tpl @@ -930,7 +930,7 @@ %if settings_general[9] == 'False':
<option value="">Languages</option>
%else:
- <option value="">None</option>
+ <option value="None">None</option>
%end
</select>
</div>
@@ -987,7 +987,7 @@ %if settings_general[9] == 'False':
<option value="">Languages</option>
%else:
- <option value="">None</option>
+ <option value="None">None</option>
%end
</select>
</div>
@@ -1223,6 +1223,18 @@ $("#settings_movie_default_hi_div").checkbox('uncheck');
}
+ if ($("#settings_single_language").checkbox('is checked')) {
+ $("#settings_serie_default_languages").parent().removeClass('multiple');
+ $("#settings_serie_default_languages").removeAttr('multiple');
+ $("#settings_movie_default_languages").parent().removeClass('multiple');
+ $("#settings_movie_default_languages").removeAttr('multiple');
+ } else {
+ $("#settings_serie_default_languages").parent().addClass('multiple');
+ $("#settings_serie_default_languages").attr('multiple');
+ $("#settings_movie_default_languages").parent().addClass('multiple');
+ $("#settings_movie_default_languages").attr('multiple');
+ }
+
$("#settings_single_language").change(function(i, obj) {
if ($("#settings_single_language").checkbox('is checked')) {
$("#settings_serie_default_languages").dropdown('clear');
|