MDL-60547 message_popup: adding preventDefault at notification popover

This commit is contained in:
Carlos
2018-02-21 23:36:03 +01:00
parent 4ce48de8d6
commit 16e0ea970e
2 changed files with 3 additions and 2 deletions
File diff suppressed because one or more lines are too long
@@ -352,9 +352,10 @@ define(['jquery', 'core/ajax', 'core/templates', 'core/str', 'core/url',
]);
// Mark all notifications read if the user activates the mark all as read button.
this.root.on(CustomEvents.events.activate, SELECTORS.MARK_ALL_READ_BUTTON, function(e) {
this.root.on(CustomEvents.events.activate, SELECTORS.MARK_ALL_READ_BUTTON, function(e, data) {
this.markAllAsRead();
e.stopPropagation();
data.originalEvent.preventDefault();
}.bind(this));
// Mark individual notification read if the user activates it.