diff --git a/public/src/app.js b/public/src/app.js index 587b57b428..a2cee901f3 100644 --- a/public/src/app.js +++ b/public/src/app.js @@ -398,9 +398,8 @@ app.cacheBuster = null; $(window).trigger('action:search.quick.start', options); options.searchOptions.searchOnly = 1; search.api(options.searchOptions, function (data) { - var resultEl = options.searchElements.resultEl; if (options.hideOnNoMatches && !data.posts.length) { - return resultEl.addClass('hidden').find('.quick-search-results-container').html(''); + return quickSearchResults.addClass('hidden').find('.quick-search-results-container').html(''); } data.posts.forEach(function (p) { var text = $('