From ee3f1cfa0cf3d14b3ffc6dc27e22f66a40dfe595 Mon Sep 17 00:00:00 2001 From: evilhero Date: Mon, 22 Apr 2019 19:26:52 -0400 Subject: [PATCH] FIX: fix for some missed removal of references resulting in an error when saving configuration --- data/interfaces/default/config.html | 45 ----------------------------- mylar/webserve.py | 2 +- 2 files changed, 1 insertion(+), 46 deletions(-) diff --git a/data/interfaces/default/config.html b/data/interfaces/default/config.html index b4441ac8..54ab4121 100755 --- a/data/interfaces/default/config.html +++ b/data/interfaces/default/config.html @@ -1688,26 +1688,6 @@ } }); - if ($("#nma").is(":checked")) - { - $("#nmaoptions").show(); - } - else - { - $("#nmaoptions").hide(); - } - - $("#nma").click(function(){ - if ($("#nma").is(":checked")) - { - $("#nmaoptions").slideDown(); - } - else - { - $("#nmaoptions").slideUp(); - } - }); - if ($("#pushover").is(":checked")) { $("#pushoveroptions").show(); @@ -2315,31 +2295,6 @@ $('#ajaxMsg').addClass('success').fadeIn().delay(3000).fadeOut(); }); - $('#nma_test').click(function () { - var imagechk = document.getElementById("nma_statusicon"); - var apikey = document.getElementById("nma_apikey").value; - $.get("testNMA", - { apikey: apikey }, - function(data){ - if (data.error != undefined) { - alert(data.error); - return; - } - $('#nmastatus').val(data); - $('#ajaxMsg').html("
"+data+"
"); - if ( data.indexOf("Successfully") > -1){ - imagechk.src = ""; - imagechk.src = "interfaces/default/images/success.png"; - imagechk.style.visibility = "visible"; - } else { - imagechk.src = ""; - imagechk.src = "interfaces/default/images/fail.png"; - imagechk.style.visibility = "visible"; - } - }); - $('#ajaxMsg').addClass('success').fadeIn().delay(3000).fadeOut(); - }); - $('#prowl_test').click(function () { var imagechk = document.getElementById("prowl_statusicon"); var apikey = document.getElementById("prowl_keys"); diff --git a/mylar/webserve.py b/mylar/webserve.py index 082acfce..eb94ddfd 100644 --- a/mylar/webserve.py +++ b/mylar/webserve.py @@ -5369,7 +5369,7 @@ class WebInterface(object): 'failed_auto', 'post_processing', 'enable_check_folder', 'enable_pre_scripts', 'enable_snatch_script', 'enable_extra_scripts', 'enable_meta', 'cbr2cbz_only', 'ct_tag_cr', 'ct_tag_cbl', 'ct_cbz_overwrite', 'rename_files', 'replace_spaces', 'zero_level', 'lowercase_filenames', 'autowant_upcoming', 'autowant_all', 'comic_cover_local', 'alternate_latest_series_covers', 'cvinfo', 'snatchedtorrent_notify', - 'prowl_enabled', 'prowl_onsnatch', 'nma_enabled', 'nma_onsnatch', 'pushover_enabled', 'pushover_onsnatch', 'boxcar_enabled', + 'prowl_enabled', 'prowl_onsnatch', 'pushover_enabled', 'pushover_onsnatch', 'boxcar_enabled', 'boxcar_onsnatch', 'pushbullet_enabled', 'pushbullet_onsnatch', 'telegram_enabled', 'telegram_onsnatch', 'slack_enabled', 'slack_onsnatch', 'email_enabled', 'email_enc', 'email_ongrab', 'email_onpost', 'opds_enable', 'opds_authentication', 'opds_metainfo', 'enable_ddl']