Skip to content

Commit 09c4efc

Browse files
authored
Update searchtools.js to render all ajax call async: false
1 parent 94a08ca commit 09c4efc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,10 @@ function splitQuery(query) {
320320
return result;
321321
}
322322

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+
323327
var docResultsCount = -1;
324328
/**
325329
* Search Module

0 commit comments

Comments
 (0)