Added popup warning before deleting all notifications

This commit is contained in:
A Sigalas 2017-08-23 11:27:42 +00:00
parent 7dc5c2e2b0
commit b137c62815

View File

@ -365,7 +365,10 @@
// toggle notifications bar
jQuery('.egwpopup_toggle').click(function(){window.app.notifications.toggle();});
jQuery('#egwpopup_fw_notifications').click(function(){window.app.notifications.toggle();});
jQuery(".egwpopup_deleteall", '#egwpopup').click(function(){window.app.notifications.delete_all()});
jQuery(".egwpopup_deleteall", '#egwpopup').click(function(){
if ( confirm(egw.lang('Are you sure you want to delete all notifications?')) )
window.app.notifications.delete_all()
});
jQuery(".egwpopup_seenall", '#egwpopup').click(function(){window.app.notifications.mark_all_seen()});
});
})();