forked from extern/egroupware
Turn all notifications ajax calls into asynchronous
This commit is contained in:
parent
66759a853b
commit
bd0530cc72
@ -39,7 +39,7 @@
|
|||||||
egw.json(
|
egw.json(
|
||||||
"notifications.notifications_ajax.get_notifications",
|
"notifications.notifications_ajax.get_notifications",
|
||||||
this.check_browser_notify()
|
this.check_browser_notify()
|
||||||
).sendRequest();
|
).sendRequest(true);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -147,7 +147,7 @@
|
|||||||
|
|
||||||
for(var confirmed in notifymessages) break;
|
for(var confirmed in notifymessages) break;
|
||||||
var request = egw.json("notifications.notifications_ajax.confirm_message", [confirmed]);
|
var request = egw.json("notifications.notifications_ajax.confirm_message", [confirmed]);
|
||||||
request.sendRequest();
|
request.sendRequest(true);
|
||||||
delete notifymessages[confirmed];
|
delete notifymessages[confirmed];
|
||||||
|
|
||||||
for(var id in notifymessages) break;
|
for(var id in notifymessages) break;
|
||||||
@ -169,7 +169,7 @@
|
|||||||
ids.push(id);
|
ids.push(id);
|
||||||
}
|
}
|
||||||
var request = egw.json("notifications.notifications_ajax.confirm_message", [ids]);
|
var request = egw.json("notifications.notifications_ajax.confirm_message", [ids]);
|
||||||
request.sendRequest();
|
request.sendRequest(true);
|
||||||
notifymessages = {};
|
notifymessages = {};
|
||||||
var egwpopup = document.getElementById("egwpopup");
|
var egwpopup = document.getElementById("egwpopup");
|
||||||
var egwpopup_message = document.getElementById("egwpopup_message");
|
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.
|
// Wait a bit to let it load first, or it might not be there when requested.
|
||||||
window.setTimeout( function() {
|
window.setTimeout( function() {
|
||||||
var request = egw.json("notifications.notifications_ajax.confirm_message", _id);
|
var request = egw.json("notifications.notifications_ajax.confirm_message", _id);
|
||||||
request.sendRequest();
|
request.sendRequest(true);
|
||||||
}, 2000);
|
}, 2000);
|
||||||
};
|
};
|
||||||
notice.show();
|
notice.show();
|
||||||
|
Loading…
Reference in New Issue
Block a user