mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2026-02-09 00:26:20 +01:00
Revert "Merge branch 'notifications_refresh' into 'master'"
This reverts merge request !1215
This commit is contained in:
@@ -1,27 +0,0 @@
|
||||
/*
|
||||
Javascript for the base template
|
||||
*/
|
||||
|
||||
$(function() {
|
||||
var elem = document.getElementById("dataExport");
|
||||
var notificationsRenderUrl = elem.getAttribute("data-notificationsRenderUrl");
|
||||
|
||||
// render the notifications item in the top menu
|
||||
function render_notifications(){
|
||||
$("#menu_item_notifications").load(
|
||||
notificationsRenderUrl,
|
||||
function(responseTxt, statusTxt, xhr){
|
||||
if(statusTxt == "error")
|
||||
console.log(
|
||||
"Failed to load HTMl to render notifications item. Error: "
|
||||
+ xhr.status
|
||||
+ ": "
|
||||
+ xhr.statusText
|
||||
);
|
||||
});
|
||||
}
|
||||
render_notifications()
|
||||
|
||||
// re-render notifications every x seconds
|
||||
setInterval(render_notifications, 5000);
|
||||
});
|
||||
Reference in New Issue
Block a user