Trim notifiier text inputs before saving

This commit is contained in:
JonnyWong16
2017-01-30 19:19:12 -08:00
parent e34472084c
commit 83ac03578d

View File

@@ -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;