diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-12-16 13:17:01 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-12-16 13:17:01 +0000 |
commit | fd263bf98521d8576fae5c39d617eb5a2ae3d160 (patch) | |
tree | 24bd5c0bb7c1e20b713aa9cf844c0c83cffbbe3b /web | |
parent | 12bbcc4bfa64cfb9677b9317929916d24dd472fb (diff) |
Try and not show offline banner unnecessarily.
Diffstat (limited to 'web')
-rw-r--r-- | web/cobrands/fixmystreet/offline.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/web/cobrands/fixmystreet/offline.js b/web/cobrands/fixmystreet/offline.js index c1a93f738..54ab12061 100644 --- a/web/cobrands/fixmystreet/offline.js +++ b/web/cobrands/fixmystreet/offline.js @@ -25,12 +25,11 @@ fixmystreet.offlineBanner = (function() { banner.push('</span></p></div>'); banner = $(banner.join('')); banner.prependTo('.content'); - if (!offline && num === 0) { + if (num === 0) { banner.hide(); } window.addEventListener("offline", function(e) { - $('.top_banner--offline').slideDown(); $('#offline_forms').html(offlineText()); }); |