[Add email] button in notification settings with a prefix set from NOTIFICATION_MAIL_BUTTON_PREFIX env variable when defined. (#528)

This commit is contained in:
dgtlmoon
2022-04-07 18:18:23 +02:00
committed by GitHub
parent f6e518497a
commit 34c83f0e7c
5 changed files with 38 additions and 14 deletions

View File

@@ -1,4 +1,15 @@
$(document).ready(function() {
$('#add-email-helper').click(function (e) {
e.preventDefault();
email = prompt("Destination email");
if(email) {
var n = $("#notification_urls");
var p=email_notification_prefix;
$(n).val( $.trim( $(n).val() )+"\n"+email_notification_prefix+email );
}
});
$('#send-test-notification').click(function (e) {
e.preventDefault();