Fixed bug in SeachHighlight.js.

This commit is contained in:
Dario Solera 2011-02-23 11:13:26 +01:00
parent 61a62d75ea
commit c9913e3d29
2 changed files with 3 additions and 2 deletions

View file

@ -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")]

View file

@ -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);