mirror of
https://github.com/beestat/app.git
synced 2025-05-24 02:14:03 -04:00
Fixed #150 - Opening announcements attempts to set the same setting multiple times in a row
This commit is contained in:
parent
c014f6c152
commit
3a65f3afb2
@ -29,14 +29,15 @@ beestat.component.modal.announcements.prototype.decorate_contents_ = function(pa
|
||||
|
||||
icon.render(parent);
|
||||
|
||||
beestat.setting(
|
||||
'last_read_announcement_id',
|
||||
announcements[0].announcement_id
|
||||
);
|
||||
beestat.dispatcher.dispatchEvent('view_announcements');
|
||||
|
||||
parent.appendChild($.createElement('p').innerHTML(announcement.text));
|
||||
});
|
||||
|
||||
beestat.setting(
|
||||
'last_read_announcement_id',
|
||||
announcements[0].announcement_id
|
||||
);
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user