X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-propro;a=blobdiff_plain;f=html%2Fsearch%2Fsearch.js;fp=html%2Fsearch%2Fsearch.js;h=68068168937138708ac6c53b633b44a11b825643;hp=b4dede7f32f35ff15c7e9d88ea063d4f2765789e;hb=9155673850189951e27e188f2003ba68d8ea2c67;hpb=36da2074d28309d1704b47e121f432fcdaf8a245 diff --git a/html/search/search.js b/html/search/search.js index b4dede7..6806816 100644 --- a/html/search/search.js +++ b/html/search/search.js @@ -36,11 +36,11 @@ function convertToId(search) { result+=c; } - else if (cn<16) + else if (cn<16) { result+="_0"+cn.toString(16); } - else + else { result+="_"+cn.toString(16); } @@ -79,14 +79,14 @@ function getYPos(item) /* A class handling everything associated with the search panel. Parameters: - name - The name of the global variable that will be + name - The name of the global variable that will be storing this instance. Is needed to be able to set timeouts. resultPath - path to use for external files */ function SearchBox(name, resultsPath, inFrame, label) { if (!name || !resultsPath) { alert("Missing parameters to SearchBox."); } - + // ---------- Instance variables this.name = name; this.resultsPath = resultsPath; @@ -163,7 +163,7 @@ function SearchBox(name, resultsPath, inFrame, label) } // stop selection hide timer - if (this.hideTimeout) + if (this.hideTimeout) { clearTimeout(this.hideTimeout); this.hideTimeout=0; @@ -192,7 +192,7 @@ function SearchBox(name, resultsPath, inFrame, label) if (e.shiftKey==1) { this.OnSearchSelectShow(); - var win=this.DOMSearchSelectWindow(); + var win=this.DOMSearchSelectWindow(); for (i=0;i