mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-19 12:59:42 -07:00
Add note passwords not copied when duplicating notifier or newsletters
This commit is contained in:
parent
e9762cdef6
commit
776efbb6a3
2 changed files with 6 additions and 0 deletions
|
@ -724,6 +724,9 @@
|
||||||
|
|
||||||
$('#duplicate-newsletter-item').click(function() {
|
$('#duplicate-newsletter-item').click(function() {
|
||||||
var msg = 'Are you sure you want to duplicate this <strong>${newsletter["agent_label"]}</strong> newsletter?';
|
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';
|
var url = 'add_newsletter_config';
|
||||||
confirmAjaxCall(url, msg, { agent_id: '${newsletter["agent_id"]}' }, null, duplicateCallback);
|
confirmAjaxCall(url, msg, { agent_id: '${newsletter["agent_id"]}' }, null, duplicateCallback);
|
||||||
});
|
});
|
||||||
|
|
|
@ -503,6 +503,9 @@
|
||||||
|
|
||||||
$('#duplicate-notifier-item').click(function() {
|
$('#duplicate-notifier-item').click(function() {
|
||||||
var msg = 'Are you sure you want to duplicate this <strong>${notifier["agent_label"]}</strong> notification agent?';
|
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';
|
var url = 'add_notifier_config';
|
||||||
confirmAjaxCall(url, msg, { agent_id: '${notifier["agent_id"]}' }, null, duplicateCallback);
|
confirmAjaxCall(url, msg, { agent_id: '${notifier["agent_id"]}' }, null, duplicateCallback);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue