Fix for validation and remove unused jquery

pull/222/head
Halali 6 years ago
parent 054202a227
commit b0cca15254

@ -928,7 +928,7 @@ $(document).ready(function() {
$(".radarr_hide").show();
},
onUnchecked: function() {
$(".sonarr_hide").hide();
$(".radarr_hide").hide();
}
});
@ -962,18 +962,6 @@ $(document).ready(function() {
$("#settings_embedded").checkbox('uncheck');
}
if ($('#settings_only_monitored').data("monitored") == "True") {
$("#settings_only_monitored").checkbox('check');
} else {
$("#settings_only_monitored").checkbox('uncheck');
}
if ($('#settings_adaptive_searching').data("adaptive") == "True") {
$("#settings_adaptive_searching").checkbox('check');
} else {
$("#settings_adaptive_searching").checkbox('uncheck');
}
$('#settings_languages').dropdown('setting', 'onAdd', function(val, txt){
$("#settings_serie_default_languages").append(
$("<option></option>").attr("value", val).text(txt)
@ -1091,10 +1079,6 @@ $(document).ready(function() {
$('#settings_providers').dropdown('set selected',{{!enabled_providers}});
$('#settings_languages').dropdown('clear');
$('#settings_languages').dropdown('set selected',{{!enabled_languages}});
$('#settings_sonarr_sync').dropdown('clear');
$('#settings_sonarr_sync').dropdown('set selected','{{!settings_sonarr[5]}}');
$('#settings_radarr_sync').dropdown('clear');
$('#settings_radarr_sync').dropdown('set selected','{{!settings_radarr[5]}}');
$('#settings_providers').dropdown();
$('#settings_languages').dropdown();
@ -1106,8 +1090,6 @@ $(document).ready(function() {
%if settings_general[19] is not None:
$('#settings_movie_default_languages').dropdown('set selected',{{!settings_general[19]}});
%end
$('#settings_sonarr_sync').dropdown();
$('#settings_radarr_sync').dropdown();
</script>
<script>
@ -1237,6 +1219,8 @@ $(document).ready(function() {
onFailure: function(){
$('#form_validation_error').show();
$('#submit').addClass('disabled');
$('.prev2').addClass('disabled');
$('.prev3').addClass('disabled');
$('.next2').addClass('disabled');
$('.next3').addClass('disabled');
@ -1246,6 +1230,8 @@ $(document).ready(function() {
onSuccess: function(){
$('#form_validation_error').hide();
$('#submit').removeClass('disabled');
$('.prev2').removeClass('disabled');
$('.prev3').removeClass('disabled');
$('.next2').removeClass('disabled');
$('.next3').removeClass('disabled');
$('#loader').addClass('active');

Loading…
Cancel
Save