Reformat.
[mkws-moved-to-github.git] / experiments / spclient / mkws.js
index 6067fb1..3dd49c2 100644 (file)
@@ -72,7 +72,7 @@ function my_onshow(data) {
 }
 
 function my_onstat(data) {
-    var stat = document.getElementById("stat");
+    var stat = document.getElementById("mkwsStat");
     if (stat == null)
        return;
 
@@ -373,15 +373,17 @@ function renderDetails(data, marker)
 
 
 $(document).ready(function() {
-    $("#mkwsSwitch").html($("<a/>", { href: '#',
-                                     onclick: "switchView(\'records\')",
-                                     text: "Record Browser",
-                                   }));
+    $("#mkwsSwitch").html($("<a/>", {
+       href: '#',
+       onclick: "switchView(\'records\')",
+       text: "Records",
+    }));
     $("#mkwsSwitch").append($("<span/>", { text: " | " }));
-    $("#mkwsSwitch").append($("<a/>", { href: '#',
-                                       onclick: "switchView(\'targets\')",
-                                       text: "Target Info",
-                                     }));
+    $("#mkwsSwitch").append($("<a/>", {
+       href: '#',
+       onclick: "switchView(\'targets\')",
+       text: "Targets",
+    }));
 
     // For some reason, doing this programmatically results in
     // document.search.query being undefined, hence the raw HTML.