Skip to content

Commit 66d71a8

Browse files
committed
Set search results first
1 parent 7f5e772 commit 66d71a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/apiclient.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,12 +331,12 @@ const search = function(args) {
331331
showError(`No 'q' parameter for search.`)
332332
return
333333
} else {
334+
$("#page-title").text(`Search results for ${q}`)
334335
ajax({
335336
method: "GET",
336337
url: `${root}search/page`,
337338
data: {q: q},
338339
success: function(results) {
339-
$("#page-title").text(`Search results for ${q}`)
340340
if (!searchTemplate) {
341341
searchTemplate = compileTemplate('search-page')
342342
}

0 commit comments

Comments
 (0)