Fix for #286 and maybe #285

This commit is contained in:
Halali 2019-01-25 08:07:34 +01:00
parent 55b43449e7
commit bddf6fbb55

View file

@ -1632,7 +1632,7 @@
$('#settings_use_radarr').checkbox({ $('#settings_use_radarr').checkbox({
onChecked: function() { onChecked: function() {
$("#radarr_tab").removeClass('disabled'); $("#radarr_tab").removeClass('disabled');
$('#sonarr_validated').checkbox('uncheck'); $('#radarr_validated').checkbox('uncheck');
$('.form').form('validate form'); $('.form').form('validate form');
$('#loader').removeClass('active'); $('#loader').removeClass('active');
}, },
@ -2114,14 +2114,14 @@
$('.radarr_config').on('keyup', function() { $('.radarr_config').on('keyup', function() {
$('#radarr_validated').checkbox('uncheck'); $('#radarr_validated').checkbox('uncheck');
$('#radarr_validation_result').text('You must test your Sonarr connection settings before saving settings.').css('color', 'red'); $('#radarr_validation_result').text('You must test your Radarr connection settings before saving settings.').css('color', 'red');
$('.form').form('validate form'); $('.form').form('validate form');
$('#loader').removeClass('active'); $('#loader').removeClass('active');
}); });
$('#settings_radarr_ssl').on('change', function() { $('#settings_radarr_ssl').on('change', function() {
$('#radarr_validated').checkbox('uncheck'); $('#radarr_validated').checkbox('uncheck');
$('#radarr_validation_result').text('You must test your Sonarr connection settings before saving settings.').css('color', 'red'); $('#radarr_validation_result').text('You must test your Radarr connection settings before saving settings.').css('color', 'red');
$('.form').form('validate form'); $('.form').form('validate form');
$('#loader').removeClass('active'); $('#loader').removeClass('active');
}); });