From: <dc...@us...> - 2011-08-09 12:38:36
|
Revision: 9034 http://docbook.svn.sourceforge.net/docbook/?rev=9034&view=rev Author: dcramer Date: 2011-08-09 12:38:30 +0000 (Tue, 09 Aug 2011) Log Message: ----------- Restore functionality to re-execute search on page change Modified Paths: -------------- branches/webhelp/xsl/webhelp/template/content/search/nwSearchFnt.js Modified: branches/webhelp/xsl/webhelp/template/content/search/nwSearchFnt.js =================================================================== --- branches/webhelp/xsl/webhelp/template/content/search/nwSearchFnt.js 2011-08-09 12:37:26 UTC (rev 9033) +++ branches/webhelp/xsl/webhelp/template/content/search/nwSearchFnt.js 2011-08-09 12:38:30 UTC (rev 9034) @@ -54,8 +54,7 @@ searchTextField = trim(document.searchForm.textToSearch.value); var expressionInput = searchTextField; - /* - //Set a cookie to store the searched keywords + $.cookie('textToSearch', expressionInput); */ //-------------------------OXYGEN PATCH END------------------------- This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <vi...@us...> - 2012-08-08 17:01:00
|
Revision: 9536 http://docbook.svn.sourceforge.net/docbook/?rev=9536&view=rev Author: visitha Date: 2012-08-08 17:00:52 +0000 (Wed, 08 Aug 2012) Log Message: ----------- BeforeEndEvaluations Modified Paths: -------------- branches/webhelp/xsl/webhelp/template/content/search/nwSearchFnt.js Modified: branches/webhelp/xsl/webhelp/template/content/search/nwSearchFnt.js =================================================================== --- branches/webhelp/xsl/webhelp/template/content/search/nwSearchFnt.js 2012-08-08 16:47:50 UTC (rev 9535) +++ branches/webhelp/xsl/webhelp/template/content/search/nwSearchFnt.js 2012-08-08 17:00:52 UTC (rev 9536) @@ -62,8 +62,13 @@ else { var splitSpace = searchTextField.split(" "); var splitWords = []; - for (var i = 0 ; i < splitSpace.length ; i++) { + for (var i = 0 ; i < splitSpace.length ; i++) { var splitDot = splitSpace[i].split("."); + + if(!(splitDot.length == 1)){ + splitWords.push(splitSpace[i]); + } + for (var i1 = 0; i1 < splitDot.length; i1++) { var splitColon = splitDot[i1].split(":"); for (var i2 = 0; i2 < splitColon.length; i2++) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |