This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/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

12 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;
});
}
});