Rename all the recdiv_* IDs as mkwsRecdiv_*
authorMike Taylor <mike@indexdata.com>
Mon, 1 Jul 2013 21:49:48 +0000 (22:49 +0100)
committerMike Taylor <mike@indexdata.com>
Mon, 1 Jul 2013 21:49:48 +0000 (22:49 +0100)
experiments/spclient/mkws.js

index f182558..7e4ec87 100644 (file)
@@ -126,7 +126,7 @@ function my_onshow(data) {
     var html = [];
     for (var i = 0; i < data.hits.length; i++) {
         var hit = data.hits[i];
-             html.push('<div class="record" id="recdiv_'+hit.recid+'" >'
+             html.push('<div class="record" id="mkwsRecdiv_'+hit.recid+'" >'
             +'<span>'+ (i + 1 + recPerPage * (curPage - 1)) +'. </span>'
             +'<a href="#" id="rec_'+hit.recid
             +'" onclick="showDetails(this.id);return false;"><b>'
@@ -213,7 +213,7 @@ function my_onrecord(data) {
     var detRecordDiv = document.getElementById('mkwsDet_'+data.recid);
     if (detRecordDiv) return;
     curDetRecData = data;
-    var recordDiv = document.getElementById('recdiv_'+curDetRecData.recid);
+    var recordDiv = document.getElementById('mkwsRecdiv_'+curDetRecData.recid);
     var html = renderDetails(curDetRecData);
     recordDiv.innerHTML += html;
 }