File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
src/Resources/themes/default Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 9999 },
100100 pageFullyLoaded : function (event ) {// Will get fired by the main doctum.js script
101101 DoctumSearch .searchTerm = DoctumSearch .cleanSearchTerm ();
102+ DoctumSearch .searchTermForEngine = Doctum .cleanSearchQuery (DoctumSearch .searchTerm );
102103 DoctumSearch .doctumSearchPageAutoCompleteProgressBarContainer = document .getElementById (' search-page-progress-bar-container' );
103104 DoctumSearch .doctumSearchPageAutoCompleteProgressBar = document .getElementById (' search-page-progress-bar' );
104105 DoctumSearch .pageFullyLoaded = true ;
109110 },
110111 launchSearch : function (event ) {
111112 if (
112- DoctumSearch .searchTerm === null
113- || (typeof DoctumSearch .searchTerm === ' string' && DoctumSearch .searchTerm .length === 0 )
114- || typeof DoctumSearch .searchTerm !== ' string'
113+ DoctumSearch .searchTermForEngine === null
114+ || (typeof DoctumSearch .searchTermForEngine === ' string' && DoctumSearch .searchTermForEngine .length === 0 )
115+ || typeof DoctumSearch .searchTermForEngine !== ' string'
115116 ) {
116117 document .getElementById (' search-results-header' ).className = ' hidden' ;
117118 // Stop the process here
118119 return ;
119120 }
120121 // Set back backslashes to non escaped backslashes
121- document .getElementById (' search' ).value = Doctum . cleanSearchQuery ( DoctumSearch .searchTerm ) .replace (/ \\\\ / g , ' \\ ' );
122+ document .getElementById (' search' ).value = DoctumSearch .searchTermForEngine .replace (/ \\\\ / g , ' \\ ' );
122123
123124 // Check if the lib is loaded
124125 if (typeof autoComplete === ' function' ) {
You can’t perform that action at this time.
0 commit comments