2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-11 21:04:42 +08:00
discourse/app/assets/javascripts/discourse/components/notification_item_component.js
Sam e06da1821d BUGFIX: notifications were not updated correctly live
- missing notifications when multiple replies in topic (till refresh)
- not cleared properly on click
2014-05-23 11:34:34 +10:00

11 lines
263 B
JavaScript

Discourse.NotificationItemComponent = Ember.Component.extend({
tagName: 'span',
didInsertElement: function(){
var self = this;
this.$('a').click(function(){
self.set('model.read', true);
self.rerender();
return true;
});
}
});