Fixed bug in SeachHighlight.js.
This commit is contained in:
parent
61a62d75ea
commit
c9913e3d29
2 changed files with 3 additions and 2 deletions
|
@ -16,5 +16,5 @@ using System.Reflection;
|
||||||
//
|
//
|
||||||
// You can specify all the values or you can default the Revision and Build Numbers
|
// You can specify all the values or you can default the Revision and Build Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
[assembly: AssemblyVersion("3.0.4.576")]
|
[assembly: AssemblyVersion("3.0.4.577")]
|
||||||
[assembly: AssemblyFileVersion("3.0.4.576")]
|
[assembly: AssemblyFileVersion("3.0.4.577")]
|
|
@ -60,6 +60,7 @@ searchhi = {
|
||||||
if (qmIndex == -1) return;
|
if (qmIndex == -1) return;
|
||||||
var ampIndex = url.indexOf("&");
|
var ampIndex = url.indexOf("&");
|
||||||
var query = url.substring(qmIndex + 4, ampIndex != -1 ? ampIndex : url.length);
|
var query = url.substring(qmIndex + 4, ampIndex != -1 ? ampIndex : url.length);
|
||||||
|
if(query == "" || query.length < 2) return;
|
||||||
query = query.replace(/,/g, ' ');
|
query = query.replace(/,/g, ' ');
|
||||||
query = unescape(query);
|
query = unescape(query);
|
||||||
searchhi.process(query);
|
searchhi.process(query);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue