Fix success message show incorrectly when sending test notification

* Due to saving the settings before sending the notification
This commit is contained in:
JonnyWong16 2016-09-27 21:48:09 -07:00
parent de3f813b46
commit ce1d2a0fd9
3 changed files with 6 additions and 6 deletions

View file

@ -148,7 +148,7 @@
$('#save-notification-item').click(function () {
// Reload modal to update certain fields
doAjaxCall('set_notification_config', $(this), 'tabs', true, reloadModal);
doAjaxCall('set_notification_config', $(this), 'tabs', true, true, reloadModal);
return false;
});
@ -176,7 +176,7 @@
})
$('#test_notifier').click(function () {
doAjaxCall('set_notification_config', $(this), 'tabs', true, sendTestNotification);
doAjaxCall('set_notification_config', $(this), 'tabs', true, false, sendTestNotification);
});
function sendTestNotification() {
@ -219,7 +219,7 @@
$('#pushbullet_apikey, #pushover_apitoken, #scripts_folder, #join_apikey').on('change', function () {
// Reload modal to update certain fields
doAjaxCall('set_notification_config', $(this), 'tabs', true, reloadModal);
doAjaxCall('set_notification_config', $(this), 'tabs', true, false, reloadModal);
return false;
});