Fix "Add email" button in main global notification settings

This commit is contained in:
dgtlmoon
2022-04-22 10:51:52 +02:00
parent def74f27e6
commit 501183e66b
2 changed files with 1 additions and 2 deletions

View File

@@ -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 );
}

View File

@@ -22,7 +22,6 @@
<a id="send-test-notification" class="pure-button button-secondary button-xsmall" style="font-size: 70%">Send test notification</a>
{% if emailprefix %}
<a id="add-email-helper" class="pure-button button-secondary button-xsmall" style="font-size: 70%">Add email</a>
{% endif %}
</div>
<div id="notification-customisation" class="pure-control-group">