diff --git a/gui/slick/js/core.js b/gui/slick/js/core.js index b91271ebe6bd0e304cb9ed0d5501e188ada89889..829e851ea8fddbc426b529d393ae3ee5e93bddb7 100644 --- a/gui/slick/js/core.js +++ b/gui/slick/js/core.js @@ -234,18 +234,18 @@ var SICKRAGE = { const whichBulkCheck = element.attr('id'); $('.' + whichBulkCheck + ':visible').each(function() { - $(this).prop('checked', element.checked); + $(this).prop('checked', element.is(':checked')); }); }); $('.enabler').each(function() { - if (!$(this).checked) { + if (!$(this).is(':checked')) { $('#content_' + $(this).attr('id')).hide(); } }); $('.enabler').on('change', function() { - if ($(this).checked) { + if ($(this).is(':checked')) { $('#content_' + $(this).attr('id')).fadeIn('fast', 'linear'); } else { $('#content_' + $(this).attr('id')).fadeOut('fast', 'linear'); @@ -288,7 +288,7 @@ var SICKRAGE = { $('#black').children().remove(); $('#pool').children().remove(); - if ($('#anime').checked) { + if ($('#anime').is(':checked')) { $('#blackwhitelist').show(); if (showName) { $.getJSON(srRoot + '/home/fetch_releasegroups', { @@ -314,7 +314,7 @@ var SICKRAGE = { $('#config-components').tabs(); $('.viewIf').on('click', function() { - if ($(this).checked) { + if ($(this).is(':checked')) { $('.hide_if_' + $(this).attr('id')).css('display', 'none'); $('.show_if_' + $(this).attr('id')).fadeIn('fast', 'linear'); } else { @@ -325,10 +325,10 @@ var SICKRAGE = { $('.datePresets').on('click', function() { let def = $('#date_presets').val(); - if ($(this).checked && def === '%x') { + if ($(this).is(':checked') && def === '%x') { def = '%a, %b %d, %Y'; $('#date_use_system_default').html('1'); - } else if (!$(this).checked && $('#date_use_system_default').html() === '1') { + } else if (!$(this).is(':checked') && $('#date_use_system_default').html() === '1') { def = '%x'; } @@ -1671,16 +1671,16 @@ var SICKRAGE = { const generatorName = $(this).attr('id'); const configArray = []; - const showMetadata = $('#' + generatorName + '_show_metadata').checked; - const episodeMetadata = $('#' + generatorName + '_episode_metadata').checked; - const fanart = $('#' + generatorName + '_fanart').checked; - const poster = $('#' + generatorName + '_poster').checked; - const banner = $('#' + generatorName + '_banner').checked; - const episodeThumbnails = $('#' + generatorName + '_episode_thumbnails').checked; - const seasonPosters = $('#' + generatorName + '_season_posters').checked; - const seasonBanners = $('#' + generatorName + '_season_banners').checked; - const seasonAllPoster = $('#' + generatorName + '_season_all_poster').checked; - const seasonAllBanner = $('#' + generatorName + '_season_all_banner').checked; + const showMetadata = $('#' + generatorName + '_show_metadata').is(':checked'); + const episodeMetadata = $('#' + generatorName + '_episode_metadata').is(':checked'); + const fanart = $('#' + generatorName + '_fanart').is(':checked'); + const poster = $('#' + generatorName + '_poster').is(':checked'); + const banner = $('#' + generatorName + '_banner').is(':checked'); + const episodeThumbnails = $('#' + generatorName + '_episode_thumbnails').is(':checked'); + const seasonPosters = $('#' + generatorName + '_season_posters').is(':checked'); + const seasonBanners = $('#' + generatorName + '_season_banners').is(':checked'); + const seasonAllPoster = $('#' + generatorName + '_season_all_poster').is(':checked'); + const seasonAllBanner = $('#' + generatorName + '_season_all_banner').is(':checked'); configArray.push(showMetadata ? '1' : '0'); configArray.push(episodeMetadata ? '1' : '0'); @@ -2640,7 +2640,7 @@ var SICKRAGE = { // Initially show/hide all the rows according to the checkboxes $('#checkboxControls input').each(function() { - const status = $(this).checked; + const status = $(this).is(':checked'); $('tr.' + $(this).attr('id')).each(function() { if (status) { $(this).show(); @@ -2651,7 +2651,7 @@ var SICKRAGE = { }); $.fn.showHideRows = function(whichClass) { - const status = $('#checkboxControls > input, #' + whichClass).checked; + const status = $('#checkboxControls > input, #' + whichClass).is(':checked'); $('tr.' + whichClass).each(function() { if (status) { $(this).show(); @@ -3305,12 +3305,12 @@ var SICKRAGE = { episodeStatuses: function() { $('.allCheck').on('click', function() { const indexerId = $(this).attr('id').split('-')[1]; - $('.' + indexerId + '-epcheck').prop('checked', $(this).checked); + $('.' + indexerId + '-epcheck').prop('checked', $(this).is(':checked')); }); $('.get_more_eps').on('click', function() { const curIndexerId = $(this).attr('id'); - const checked = $('#allCheck-' + curIndexerId).checked; + const checked = $('#allCheck-' + curIndexerId).is(':checked'); const lastRow = $('tr#' + curIndexerId); const clicked = $(this).attr('data-clicked'); const action = $(this).attr('value'); @@ -3360,12 +3360,12 @@ var SICKRAGE = { subtitleMissed: function() { $('.allCheck').on('click', function() { const indexerId = $(this).attr('id').split('-')[1]; - $('.' + indexerId + '-epcheck').prop('checked', $(this).checked); + $('.' + indexerId + '-epcheck').prop('checked', $(this).is(':checked')); }); $('.get_more_eps').on('click', function() { const indexerId = $(this).attr('id'); - const checked = $('#allCheck-' + indexerId).checked; + const checked = $('#allCheck-' + indexerId).is(':checked'); const lastRow = $('tr#' + indexerId); const clicked = $(this).attr('data-clicked'); const action = $(this).attr('value'); @@ -3784,10 +3784,10 @@ var SICKRAGE = { defaultStatus: $('#statusSelect').val(), anyQualities: anyQualArray.join(','), bestQualities: bestQualArray.join(','), - defaultSeasonFolders: $('#season_folders').checked, - subtitles: $('#subtitles').checked, - anime: $('#anime').checked, - scene: $('#scene').checked, + defaultSeasonFolders: $('#season_folders').is(':checked'), + subtitles: $('#subtitles').is(':checked'), + anime: $('#anime').is(':checked'), + scene: $('#scene').is(':checked'), defaultStatusAfter: $('#statusSelectAfter').val() }); @@ -4046,7 +4046,7 @@ var SICKRAGE = { $('<input>', { type: 'hidden', name: 'promptForSettings', - value: $('#promptForSettings').checked ? 'on' : 'off' + value: $('#promptForSettings').is(':checked') ? 'on' : 'off' }).appendTo(submitForm); submitForm.submit(); diff --git a/gui/slick/js/core.min.js b/gui/slick/js/core.min.js index 69632e41809858c67ac71d8112def0ac3f3af65b..50b51983e919ebd0dd0b07eb2687e9330929ceed 100644 Binary files a/gui/slick/js/core.min.js and b/gui/slick/js/core.min.js differ