diff --git a/changedetectionio/static/js/notifications.js b/changedetectionio/static/js/notifications.js index 4f43f286..d2eeb92c 100644 --- a/changedetectionio/static/js/notifications.js +++ b/changedetectionio/static/js/notifications.js @@ -25,10 +25,10 @@ $(document).ready(function() { data = { window_url : window.location.href, - notification_urls : $('#notification_urls').val(), - notification_title : $('#notification_title').val(), - notification_body : $('#notification_body').val(), - notification_format : $('#notification_format').val(), + notification_urls : $('.notification-urls').val(), + notification_title : $('.notification-title').val(), + notification_body : $('.notification-body').val(), + notification_format : $('.notification-format').val(), } for (key in data) { if (!data[key].length) { diff --git a/changedetectionio/templates/_common_fields.jinja b/changedetectionio/templates/_common_fields.jinja index 08193e48..ea52f74e 100644 --- a/changedetectionio/templates/_common_fields.jinja +++ b/changedetectionio/templates/_common_fields.jinja @@ -8,7 +8,7 @@ Gitter - gitter://token/room Office365 - o365://TenantID:AccountEmail/ClientID/ClientSecret/TargetEmail AWS SNS - sns://AccessKeyID/AccessSecretKey/RegionName/+PhoneNo - SMTPS - mailtos://user:pass@mail.domain.com?to=receivingAddress@example.com") + SMTPS - mailtos://user:pass@mail.domain.com?to=receivingAddress@example.com", class="notification-urls") }}
- {{ render_field(form.notification_title, class="m-d") }} + {{ render_field(form.notification_title, class="m-d notification-title") }} Title for all notifications
- {{ render_field(form.notification_body , rows=5) }} + {{ render_field(form.notification_body , rows=5, class="notification-body") }} Body for all notifications
- {{ render_field(form.notification_format , rows=5) }} + {{ render_field(form.notification_format , rows=5, class="notification-format") }} Format for all notifications