File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/Resources/themes/default Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 9898 return DoctumSearch .longTypes [type] || DoctumSearch .longTypes [' _' ];
9999 },
100100 pageFullyLoaded : function (event ) {// Will get fired by the main doctum.js script
101- DoctumSearch .searchTerm = Doctum . cleanSearchQuery ( DoctumSearch .cleanSearchTerm () );
101+ DoctumSearch .searchTerm = DoctumSearch .cleanSearchTerm ();
102102 DoctumSearch .doctumSearchPageAutoCompleteProgressBarContainer = document .getElementById (' search-page-progress-bar-container' );
103103 DoctumSearch .doctumSearchPageAutoCompleteProgressBar = document .getElementById (' search-page-progress-bar' );
104104 DoctumSearch .pageFullyLoaded = true ;
117117 // Stop the process here
118118 return ;
119119 }
120- document .getElementById (' search' ).value = DoctumSearch .searchTerm ;
120+ // Set back backslashes to non escaped backslashes
121+ document .getElementById (' search' ).value = Doctum .cleanSearchQuery (DoctumSearch .searchTerm ).replace (/ \\\\ / g , ' \\ ' );
121122
122123 // Check if the lib is loaded
123124 if (typeof autoComplete === ' function' ) {
You can’t perform that action at this time.
0 commit comments