Skip to content

Commit

Permalink
MDL-60547 message_popup: adding preventDefault at notification popover
Browse files Browse the repository at this point in the history
  • Loading branch information
cescobedo committed Feb 22, 2018
1 parent 2e8f163 commit c4f22db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Expand Up @@ -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.
Expand Down

0 comments on commit c4f22db

Please sign in to comment.