Skip to content

Commit ebe87b8

Browse files
authored
Change positions of new code snippet to test
1 parent 09c4efc commit ebe87b8

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tutorials/themes/tutorials-theme/static/searchtools.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
*
1010
*/
1111

12+
// Set ajaxSetup to synchronous to make a synchronous $.get call (but could be bad form).
13+
// See https://stackoverflow.com/a/25489055/9959073 for details.
14+
jQuery.ajaxSetup({async:false});
1215

1316
/* Non-minified version JS is _stemmer.js if file is provided */
1417
/**
@@ -320,10 +323,6 @@ function splitQuery(query) {
320323
return result;
321324
}
322325

323-
// Set ajaxSetup to synchronous to make a synchronous $.get call (but could be bad form).
324-
// See https://stackoverflow.com/a/25489055/9959073 for details.
325-
jQuery.ajaxSetup({async:false});
326-
327326
var docResultsCount = -1;
328327
/**
329328
* Search Module

0 commit comments

Comments
 (0)