MDL-60547 message_popup: adding preventDefault at notification popover

This commit is contained in:
Carlos
2018-02-22 10:53:51 +01:00
parent 2e8f163f64
commit c4f22db315
2 changed files with 3 additions and 2 deletions
File diff suppressed because one or more lines are too long
@@ -357,9 +357,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.