diff options
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -505,14 +505,19 @@ if (view.ceausescu_cards.length > 0 && view.is_pwr_struggle === true) { // UPDATE EVENT MARKERS
for (let id in view.persistent_events) {
- let marker = document.getElementById(id);
+ let marker = document.getElementById(id)
if (marker && view.persistent_events[id]) {
- marker.style.display = 'block';
+ marker.style.display = 'block'
} else if (marker && !view.persistent_events[id]) {
marker.style.display = 'none'
+ } else if (marker && view.persistent_events[id] !== "") {
+ marker.style.display = 'block'
+ } else if(marker && view.persistent_events[id] === '') {
+ marker.style.display = 'none'
}
}
+
// CHECK WHETHER ANY EVENT MARKERS ARE SHOWING IN THE ASIDE
aside_events_showing = false
for (let id of aside_events) {
|