From 501183e66b4be0353bd86d2bb32d7ea62406c7d7 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Fri, 22 Apr 2022 10:51:52 +0200 Subject: [PATCH] Fix "Add email" button in main global notification settings --- changedetectionio/static/js/notifications.js | 2 +- changedetectionio/templates/_common_fields.jinja | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/changedetectionio/static/js/notifications.js b/changedetectionio/static/js/notifications.js index d2eeb92c..9a4d0fb8 100644 --- a/changedetectionio/static/js/notifications.js +++ b/changedetectionio/static/js/notifications.js @@ -4,7 +4,7 @@ $(document).ready(function() { e.preventDefault(); email = prompt("Destination email"); if(email) { - var n = $("#notification_urls"); + var n = $(".notification-urls"); var p=email_notification_prefix; $(n).val( $.trim( $(n).val() )+"\n"+email_notification_prefix+email ); } diff --git a/changedetectionio/templates/_common_fields.jinja b/changedetectionio/templates/_common_fields.jinja index ea52f74e..30ada5c0 100644 --- a/changedetectionio/templates/_common_fields.jinja +++ b/changedetectionio/templates/_common_fields.jinja @@ -22,7 +22,6 @@ Send test notification {% if emailprefix %} Add email - {% endif %}