mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:07 +01:00
Turn all notifications ajax calls into asynchronous
This commit is contained in:
parent
66759a853b
commit
bd0530cc72
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user