Fix after merging dev branch.

This commit is contained in:
Louis Vézina 2019-05-30 00:11:07 -04:00
parent 036df00f5b
commit a420bb3c43
2 changed files with 79 additions and 0 deletions

View File

@ -430,6 +430,21 @@
</div> </div>
</div> </div>
</div> </div>
<div class="middle aligned row">
<div class="right aligned four wide column">
<label>Forced</label>
</div>
<div class="eleven wide column">
<div class='field'>
<select name="settings_serie_default_forced" id="settings_serie_default_forced" class="ui fluid selection dropdown">
<option value="False">False</option>
<option value="True">True</option>
<option value="Both">Both</option>
</select>
</div>
</div>
</div>
</div> </div>
</div> </div>
@ -487,6 +502,21 @@
</div> </div>
</div> </div>
</div> </div>
<div class="middle aligned row">
<div id="movie_default_forced_label" class="right aligned four wide column">
<label>Forced</label>
</div>
<div class="eleven wide column">
<div class='field'>
<select name="settings_movie_default_forced" id="settings_movie_default_forced" class="ui fluid selection dropdown">
<option value="False">False</option>
<option value="True">True</option>
<option value="Both">Both</option>
</select>
</div>
</div>
</div>
</div> </div>
</div> </div>
@ -617,19 +647,23 @@
if ($('#settings_serie_default_enabled_div').data("enabled") === "True") { if ($('#settings_serie_default_enabled_div').data("enabled") === "True") {
$("#settings_serie_default_languages").removeClass('disabled'); $("#settings_serie_default_languages").removeClass('disabled');
$("#settings_serie_default_hi_div").removeClass('disabled'); $("#settings_serie_default_hi_div").removeClass('disabled');
$("#settings_serie_default_forced_div").removeClass('disabled');
} else { } else {
$("#settings_serie_default_languages").addClass('disabled'); $("#settings_serie_default_languages").addClass('disabled');
$("#settings_serie_default_hi_div").addClass('disabled'); $("#settings_serie_default_hi_div").addClass('disabled');
$("#settings_serie_default_forced_div").addClass('disabled');
} }
$('#settings_serie_default_enabled_div').checkbox({ $('#settings_serie_default_enabled_div').checkbox({
onChecked: function() { onChecked: function() {
$("#settings_serie_default_languages").parent().removeClass('disabled'); $("#settings_serie_default_languages").parent().removeClass('disabled');
$("#settings_serie_default_hi_div").removeClass('disabled'); $("#settings_serie_default_hi_div").removeClass('disabled');
$("#settings_serie_default_forced").parent().removeClass('disabled');
}, },
onUnchecked: function() { onUnchecked: function() {
$("#settings_serie_default_languages").parent().addClass('disabled'); $("#settings_serie_default_languages").parent().addClass('disabled');
$("#settings_serie_default_hi_div").addClass('disabled'); $("#settings_serie_default_hi_div").addClass('disabled');
$("#settings_serie_default_forced").parent().addClass('disabled');
} }
}); });
@ -648,19 +682,23 @@
if ($('#settings_movie_default_enabled_div').data("enabled") === "True") { if ($('#settings_movie_default_enabled_div').data("enabled") === "True") {
$("#settings_movie_default_languages").removeClass('disabled'); $("#settings_movie_default_languages").removeClass('disabled');
$("#settings_movie_default_hi_div").removeClass('disabled'); $("#settings_movie_default_hi_div").removeClass('disabled');
$("#settings_movie_default_forced_div").removeClass('disabled');
} else { } else {
$("#settings_movie_default_languages").addClass('disabled'); $("#settings_movie_default_languages").addClass('disabled');
$("#settings_movie_default_hi_div").addClass('disabled'); $("#settings_movie_default_hi_div").addClass('disabled');
$("#settings_movie_default_forced_div").addClass('disabled');
} }
$('#settings_movie_default_enabled_div').checkbox({ $('#settings_movie_default_enabled_div').checkbox({
onChecked: function() { onChecked: function() {
$("#settings_movie_default_languages").parent().removeClass('disabled'); $("#settings_movie_default_languages").parent().removeClass('disabled');
$("#settings_movie_default_hi_div").removeClass('disabled'); $("#settings_movie_default_hi_div").removeClass('disabled');
$("#settings_movie_default_forced").parent().removeClass('disabled');
}, },
onUnchecked: function() { onUnchecked: function() {
$("#settings_movie_default_languages").parent().addClass('disabled'); $("#settings_movie_default_languages").parent().addClass('disabled');
$("#settings_movie_default_hi_div").addClass('disabled'); $("#settings_movie_default_hi_div").addClass('disabled');
$("#settings_movie_default_forced").parent().addClass('disabled');
} }
}); });
@ -718,6 +756,9 @@
$('#settings_movie_default_languages').dropdown('set selected',{{!settings.general.movie_default_language}}); $('#settings_movie_default_languages').dropdown('set selected',{{!settings.general.movie_default_language}});
%end %end
$('#settings_serie_default_forced').dropdown('set selected','{{!settings.general.serie_default_forced}}');
$('#settings_movie_default_forced').dropdown('set selected','{{!settings.general.movie_default_forced}}');
$('#settings_languages').dropdown('setting', 'onChange', function(){ $('#settings_languages').dropdown('setting', 'onChange', function(){
$('.form').form('validate field', 'settings_subliminal_languages'); $('.form').form('validate field', 'settings_subliminal_languages');
}); });

View File

@ -171,6 +171,21 @@
</div> </div>
</div> </div>
</div> </div>
<div class="middle aligned row">
<div class="right aligned four wide column">
<label>Forced</label>
</div>
<div class="eleven wide column">
<div class='field'>
<select name="settings_serie_default_forced" id="settings_serie_default_forced" class="ui fluid selection dropdown">
<option value="False">False</option>
<option value="True">True</option>
<option value="Both">Both</option>
</select>
</div>
</div>
</div>
</div> </div>
</div> </div>
@ -228,6 +243,21 @@
</div> </div>
</div> </div>
</div> </div>
<div class="middle aligned row">
<div id="movie_default_forced_label" class="right aligned four wide column">
<label>Forced</label>
</div>
<div class="eleven wide column">
<div class='field'>
<select name="settings_movie_default_forced" id="settings_movie_default_forced" class="ui fluid selection dropdown">
<option value="False">False</option>
<option value="True">True</option>
<option value="Both">Both</option>
</select>
</div>
</div>
</div>
</div> </div>
</div> </div>
@ -270,19 +300,23 @@
if ($('#settings_serie_default_enabled_div').data("enabled") === "True") { if ($('#settings_serie_default_enabled_div').data("enabled") === "True") {
$("#settings_serie_default_languages").removeClass('disabled'); $("#settings_serie_default_languages").removeClass('disabled');
$("#settings_serie_default_hi_div").removeClass('disabled'); $("#settings_serie_default_hi_div").removeClass('disabled');
$("#settings_serie_default_forced_div").removeClass('disabled');
} else { } else {
$("#settings_serie_default_languages").addClass('disabled'); $("#settings_serie_default_languages").addClass('disabled');
$("#settings_serie_default_hi_div").addClass('disabled'); $("#settings_serie_default_hi_div").addClass('disabled');
$("#settings_serie_default_forced_div").addClass('disabled');
} }
$('#settings_serie_default_enabled_div').checkbox({ $('#settings_serie_default_enabled_div').checkbox({
onChecked: function() { onChecked: function() {
$("#settings_serie_default_languages").parent().removeClass('disabled'); $("#settings_serie_default_languages").parent().removeClass('disabled');
$("#settings_serie_default_hi_div").removeClass('disabled'); $("#settings_serie_default_hi_div").removeClass('disabled');
$("#settings_serie_default_forced").parent().removeClass('disabled');
}, },
onUnchecked: function() { onUnchecked: function() {
$("#settings_serie_default_languages").parent().addClass('disabled'); $("#settings_serie_default_languages").parent().addClass('disabled');
$("#settings_serie_default_hi_div").addClass('disabled'); $("#settings_serie_default_hi_div").addClass('disabled');
$("#settings_serie_default_forced").parent().addClass('disabled');
} }
}); });
@ -301,19 +335,23 @@
if ($('#settings_movie_default_enabled_div').data("enabled") === "True") { if ($('#settings_movie_default_enabled_div').data("enabled") === "True") {
$("#settings_movie_default_languages").removeClass('disabled'); $("#settings_movie_default_languages").removeClass('disabled');
$("#settings_movie_default_hi_div").removeClass('disabled'); $("#settings_movie_default_hi_div").removeClass('disabled');
$("#settings_movie_default_forced_div").removeClass('disabled');
} else { } else {
$("#settings_movie_default_languages").addClass('disabled'); $("#settings_movie_default_languages").addClass('disabled');
$("#settings_movie_default_hi_div").addClass('disabled'); $("#settings_movie_default_hi_div").addClass('disabled');
$("#settings_movie_default_forced_div").addClass('disabled');
} }
$('#settings_movie_default_enabled_div').checkbox({ $('#settings_movie_default_enabled_div').checkbox({
onChecked: function() { onChecked: function() {
$("#settings_movie_default_languages").parent().removeClass('disabled'); $("#settings_movie_default_languages").parent().removeClass('disabled');
$("#settings_movie_default_hi_div").removeClass('disabled'); $("#settings_movie_default_hi_div").removeClass('disabled');
$("#settings_movie_default_forced").parent().removeClass('disabled');
}, },
onUnchecked: function() { onUnchecked: function() {
$("#settings_movie_default_languages").parent().addClass('disabled'); $("#settings_movie_default_languages").parent().addClass('disabled');
$("#settings_movie_default_hi_div").addClass('disabled'); $("#settings_movie_default_hi_div").addClass('disabled');
$("#settings_movie_default_forced").parent().addClass('disabled');
} }
}); });