mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-15 01:32:57 -07:00
Add newsletter handler
This commit is contained in:
parent
33c2315384
commit
d4d5ff9de7
6 changed files with 155 additions and 23 deletions
|
@ -439,7 +439,7 @@
|
|||
});
|
||||
|
||||
function previewNewsletter() {
|
||||
window.open('preview_newsletter?newsletter_id=${newsletter["id"]}');
|
||||
window.open('preview_newsletter?newsletter_id=' + $('#newsletter_id').val());
|
||||
}
|
||||
|
||||
function sendTestNewsletter() {
|
||||
|
@ -447,8 +447,9 @@
|
|||
$.ajax({
|
||||
url: 'send_newsletter',
|
||||
data: {
|
||||
newsletter_id: '${newsletter["id"]}',
|
||||
test: true
|
||||
newsletter_id: $('#newsletter_id').val(),
|
||||
subject: $('#email_subject').val(),
|
||||
notify_action: 'test'
|
||||
},
|
||||
cache: false,
|
||||
async: true,
|
||||
|
|
|
@ -755,7 +755,7 @@
|
|||
$.ajax({
|
||||
url: 'send_notification',
|
||||
data: {
|
||||
notifier_id: '${notifier["id"]}',
|
||||
notifier_id: $('#notifier_id').val(),
|
||||
subject: $('#test_subject').val(),
|
||||
body: $('#test_body').val(),
|
||||
script: $('#test_script').val(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue