From: Mike Taylor Date: Thu, 27 Jun 2013 11:49:26 +0000 (+0200) Subject: Don't try to toggle blanket if it's not defined. X-Git-Tag: 0.9.1~443 X-Git-Url: http://jsfdemo.indexdata.com/?a=commitdiff_plain;h=3679616c1bfcab2c78545cbeff8d9047460f01ac;p=mkws-moved-to-github.git Don't try to toggle blanket if it's not defined. --- diff --git a/experiments/spclient/mkws.js b/experiments/spclient/mkws.js index a4058a0..85472d7 100644 --- a/experiments/spclient/mkws.js +++ b/experiments/spclient/mkws.js @@ -376,12 +376,12 @@ function switchView(view) { case 'targets': targets.style.display = "block"; records.style.display = "none"; - blanket.style.display = "none"; + if (blanket) { blanket.style.display = "none"; } break; case 'records': targets.style.display = "none"; records.style.display = "block"; - blanket.style.display = "block"; + if (blanket) { blanket.style.display = "block"; } break; default: alert('Unknown view.');