From 30f8fcfed4b7325ea2fb3f34d7f9722a23ea6203 Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Wed, 30 Dec 2015 19:38:02 -0800 Subject: [PATCH] Make tiles say "never" until the first time they're triggered. --- static/babystats.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/static/babystats.js b/static/babystats.js index b9c6eba..729f442 100644 --- a/static/babystats.js +++ b/static/babystats.js @@ -104,6 +104,8 @@ BabyStats.prototype.onChatReady_ = function(chat) { this.chat_.addEventListener('request_denied', this.checkOverlay_.bind(this)); this.chat_.addEventListener('acl_change', this.checkOverlay_.bind(this)); + this.updateTileStatus_(); + // Cheap hack to get the DOM to render by yielding before we turn on // transitions. window.setTimeout(this.setTransitions_.bind(this), 0); @@ -849,6 +851,7 @@ BabyStats.prototype.updateTileStatus_ = function() { this.addCSSClass_(tile.statusBox, 'babyStatsCellStatusActive'); } } else { + tile.statusBox.textContent = 'never'; this.removeCSSClass_(tile.statusBox, 'babyStatsCellStatusActive'); } }.bind(this));