From d65546a34dc88b6901cc70e1387c86fa599db04a Mon Sep 17 00:00:00 2001 From: barisusakli Date: Thu, 5 Feb 2015 21:08:52 -0500 Subject: [PATCH] search form fix --- public/src/client/search.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/src/client/search.js b/public/src/client/search.js index 974d9f1ab0..7350d0b068 100644 --- a/public/src/client/search.js +++ b/public/src/client/search.js @@ -13,6 +13,7 @@ define('forum/search', ['search'], function(searchModule) { var searchIn = $('#advanced-search #search-in'); if (params && params.in) { searchIn.val(params.in); + $('.post-search-item').toggleClass('hide', params.in !== 'posts'); } if (params && params.by) { @@ -20,7 +21,7 @@ define('forum/search', ['search'], function(searchModule) { } if (params && (params['categories[]'] || params.categories)) { - $('#posted-in-categories').val((params['categories[]'] || params.categories)); + $('#posted-in-categories').val(params['categories[]'] || params.categories); } if (params && params.searchChildren) { @@ -34,7 +35,6 @@ define('forum/search', ['search'], function(searchModule) { searchIn.on('change', function() { $('.post-search-item').toggleClass('hide', searchIn.val() !== 'posts'); - }); highlightMatches(searchQuery);