mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-14 02:26:58 -07:00
Trim notifiier text inputs before saving
This commit is contained in:
parent
e34472084c
commit
83ac03578d
1 changed files with 4 additions and 0 deletions
|
@ -278,6 +278,10 @@
|
|||
});
|
||||
|
||||
$('#save-notifier-item').click(function () {
|
||||
// Trim all text inputs before saving
|
||||
$('input[type=text]').val(function(_, value) {
|
||||
return $.trim(value);
|
||||
});
|
||||
// Reload modal to update certain fields
|
||||
doAjaxCall('set_notifier_config', $(this), 'tabs', true, true, saveCallback);
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue