From bd0530cc72226b7cf503d8fb1bc694c34cfba0f4 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Thu, 18 May 2017 16:17:46 +0200 Subject: [PATCH] Turn all notifications ajax calls into asynchronous --- notifications/js/notificationajaxpopup.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/notifications/js/notificationajaxpopup.js b/notifications/js/notificationajaxpopup.js index 033ab89ff8..44fc5a0665 100644 --- a/notifications/js/notificationajaxpopup.js +++ b/notifications/js/notificationajaxpopup.js @@ -39,7 +39,7 @@ egw.json( "notifications.notifications_ajax.get_notifications", this.check_browser_notify() - ).sendRequest(); + ).sendRequest(true); }; /** @@ -147,7 +147,7 @@ for(var confirmed in notifymessages) break; var request = egw.json("notifications.notifications_ajax.confirm_message", [confirmed]); - request.sendRequest(); + request.sendRequest(true); delete notifymessages[confirmed]; for(var id in notifymessages) break; @@ -169,7 +169,7 @@ ids.push(id); } var request = egw.json("notifications.notifications_ajax.confirm_message", [ids]); - request.sendRequest(); + request.sendRequest(true); notifymessages = {}; var egwpopup = document.getElementById("egwpopup"); var egwpopup_message = document.getElementById("egwpopup_message"); @@ -230,7 +230,7 @@ // Wait a bit to let it load first, or it might not be there when requested. window.setTimeout( function() { var request = egw.json("notifications.notifications_ajax.confirm_message", _id); - request.sendRequest(); + request.sendRequest(true); }, 2000); }; notice.show();