From 9bbfb1ea15fc6061675dd9026f25b7ef77ca5d0e Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 12 Jun 2014 10:50:10 +1000 Subject: [PATCH] BUGFIX: not binding correctly to notifications that popped up AFTER element was inserted --- app/assets/javascripts/discourse/views/header.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/views/header.js.es6 b/app/assets/javascripts/discourse/views/header.js.es6 index a9ef18e2b6..c6e7e3013b 100644 --- a/app/assets/javascripts/discourse/views/header.js.es6 +++ b/app/assets/javascripts/discourse/views/header.js.es6 @@ -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; });