1
0
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:
Jon Ziebell 2019-08-14 21:42:32 -04:00
parent c014f6c152
commit 3a65f3afb2

View File

@ -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
);
};
/**