Add note passwords not copied when duplicating notifier or newsletters

This commit is contained in:
JonnyWong16 2021-11-13 22:24:54 -08:00
commit 776efbb6a3
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
2 changed files with 6 additions and 0 deletions

View file

@ -724,6 +724,9 @@
$('#duplicate-newsletter-item').click(function() {
var msg = 'Are you sure you want to duplicate this <strong>${newsletter["agent_label"]}</strong> newsletter?';
if ($('#set_newsletter_config .form-control[id$=_password]').val()) {
msg += '<br><br>Note: Saved passwords will not be copied over and must be re-entered.';
}
var url = 'add_newsletter_config';
confirmAjaxCall(url, msg, { agent_id: '${newsletter["agent_id"]}' }, null, duplicateCallback);
});

View file

@ -503,6 +503,9 @@
$('#duplicate-notifier-item').click(function() {
var msg = 'Are you sure you want to duplicate this <strong>${notifier["agent_label"]}</strong> notification agent?';
if ($('#set_notifier_config .form-control[id$=_password]').val()) {
msg += '<br><br>Note: Saved passwords will not be copied over and must be re-entered.';
}
var url = 'add_notifier_config';
confirmAjaxCall(url, msg, { agent_id: '${notifier["agent_id"]}' }, null, duplicateCallback);
});