In switchView(), refer to #mkwsResults rather than #mkwsRecords
authorMike Taylor <mike@indexdata.com>
Fri, 5 Jul 2013 16:13:10 +0000 (17:13 +0100)
committerMike Taylor <mike@indexdata.com>
Fri, 5 Jul 2013 16:13:10 +0000 (17:13 +0100)
experiments/spclient/mkws.js

index 5a62faf..8c856f2 100644 (file)
@@ -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: