From: Mike Taylor Date: Fri, 5 Jul 2013 16:13:10 +0000 (+0100) Subject: In switchView(), refer to #mkwsResults rather than #mkwsRecords X-Git-Tag: 0.9.1~307^2~8 X-Git-Url: http://lists.indexdata.com/cgi-bin?a=commitdiff_plain;h=ebe99080bb2afa7262453453dfea54262575cbe8;p=mkws-moved-to-github.git In switchView(), refer to #mkwsResults rather than #mkwsRecords --- diff --git a/experiments/spclient/mkws.js b/experiments/spclient/mkws.js index 5a62faf..8c856f2 100644 --- a/experiments/spclient/mkws.js +++ b/experiments/spclient/mkws.js @@ -398,23 +398,23 @@ function pagerPrev() { function switchView(view) { var targets = document.getElementById('mkwsTargets'); - var records = document.getElementById('mkwsResults'); + var results = document.getElementById('mkwsResults'); var blanket = document.getElementById('mkwsBlanket'); switch(view) { case 'targets': targets.style.display = "block"; - if (records) records.style.display = "none"; + if (results) results.style.display = "none"; if (blanket) { blanket.style.display = "none"; } break; - case 'records': + case 'results': targets.style.display = "none"; - if (records) records.style.display = "block"; + if (results) results.style.display = "block"; if (blanket) { blanket.style.display = "block"; } break; case 'none': targets.style.display = "none"; - if (records) records.style.display = "none"; + if (results) results.style.display = "none"; if (blanket) { blanket.style.display = "none"; } break; default: