mirror of
https://github.com/beestat/app.git
synced 2025-06-01 04:37:12 -04:00
Fixed #340 - Announcements popup shows every time
This commit is contained in:
parent
c5cb3f1bc1
commit
d1aa64dba6
@ -238,11 +238,14 @@ beestat.layer.load.prototype.decorate_ = function(parent) {
|
|||||||
beestat.setting('first_run', false);
|
beestat.setting('first_run', false);
|
||||||
(new beestat.component.modal.newsletter()).render();
|
(new beestat.component.modal.newsletter()).render();
|
||||||
} else if (
|
} else if (
|
||||||
|
beestat.cache.announcement.length > 0 &&
|
||||||
|
(
|
||||||
last_read_announcement_id === undefined ||
|
last_read_announcement_id === undefined ||
|
||||||
(
|
(
|
||||||
most_recent_important_announcement_id !== undefined &&
|
most_recent_important_announcement_id !== undefined &&
|
||||||
last_read_announcement_id < most_recent_important_announcement_id
|
last_read_announcement_id < most_recent_important_announcement_id
|
||||||
)
|
)
|
||||||
|
)
|
||||||
) {
|
) {
|
||||||
(new beestat.component.modal.announcements()).render();
|
(new beestat.component.modal.announcements()).render();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user