Rename bytarget div to "#mkwsBytarget"
authorMike Taylor <mike@indexdata.com>
Mon, 1 Jul 2013 21:27:58 +0000 (22:27 +0100)
committerMike Taylor <mike@indexdata.com>
Mon, 1 Jul 2013 21:27:58 +0000 (22:27 +0100)
experiments/spclient/html-structure.txt
experiments/spclient/mkws.js

index a4eaae2..8c5037a 100644 (file)
@@ -46,7 +46,7 @@ identifier and .CLASS indicates an instance of a class.
                       th
                       td
 #mkwsTargets
-  div#bytarget
+  #mkwsBytarget
     table
       thead
         tr*
index 5881718..92512d8 100644 (file)
@@ -219,7 +219,7 @@ function my_onrecord(data) {
 }
 
 function my_onbytarget(data) {
-    var targetDiv = document.getElementById("bytarget");
+    var targetDiv = document.getElementById("mkwsBytarget");
     var table ='<table><thead><tr><td>Target ID</td><td>Hits</td><td>Diags</td>'
         +'<td>Records</td><td>State</td></tr></thead><tbody>';
 
@@ -621,7 +621,7 @@ function mkws_html_switch(config) {
 
     debug("HTML targets");
     $("#mkwsTargets").html('\
-      <div id="bytarget">\
+      <div id="mkwsBytarget">\
        No information available yet.\
       </div>');
     $("#mkwsTargets").css("display", "none");