Skip to content

Commit

Permalink
Using et2_dialog for popup
Browse files Browse the repository at this point in the history
  • Loading branch information
asig2016 committed Aug 23, 2017
1 parent b137c62 commit e966ae3
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions notifications/js/notificationajaxpopup.js
Original file line number Diff line number Diff line change
Expand Up @@ -366,8 +366,13 @@
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(){
if ( confirm(egw.lang('Are you sure you want to delete all notifications?')) )
window.app.notifications.delete_all()
et2_dialog.show_dialog( function(_button){
if (_button == 2) window.app.notifications.delete_all();
},
egw.lang('Are you sure you want to delete all notifications?'),
egw.lang('Delete notifications'),
null, et2_dialog.BUTTON_YES_NO, et2_dialog.WARNING_MESSAGE, undefined, egw
);
});
jQuery(".egwpopup_seenall", '#egwpopup').click(function(){window.app.notifications.mark_all_seen()});
});
Expand Down

0 comments on commit e966ae3

Please sign in to comment.