BUGFIX: not binding correctly to notifications that popped up AFTER element was inserted

This commit is contained in:
Sam 2014-06-12 10:50:10 +10:00
parent d3becd2969
commit 9bbfb1ea15
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ export default Discourse.View.extend({
self.showDropdown.apply(self, [$(e.currentTarget)]);
return false;
});
this.$('a.unread-private-messages, a.unread-notifications, a[data-notifications]').on('click.notifications', function(e) {
this.$().on('click.notifications','a.unread-private-messages, a.unread-notifications, a[data-notifications]', function(e) {
self.showNotifications(e);
return false;
});