search form fix

v1.18.x
barisusakli 10 years ago
parent 9487f3a028
commit d65546a34d

@ -13,6 +13,7 @@ define('forum/search', ['search'], function(searchModule) {
var searchIn = $('#advanced-search #search-in'); var searchIn = $('#advanced-search #search-in');
if (params && params.in) { if (params && params.in) {
searchIn.val(params.in); searchIn.val(params.in);
$('.post-search-item').toggleClass('hide', params.in !== 'posts');
} }
if (params && params.by) { if (params && params.by) {
@ -20,7 +21,7 @@ define('forum/search', ['search'], function(searchModule) {
} }
if (params && (params['categories[]'] || params.categories)) { 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) { if (params && params.searchChildren) {
@ -34,7 +35,6 @@ define('forum/search', ['search'], function(searchModule) {
searchIn.on('change', function() { searchIn.on('change', function() {
$('.post-search-item').toggleClass('hide', searchIn.val() !== 'posts'); $('.post-search-item').toggleClass('hide', searchIn.val() !== 'posts');
}); });
highlightMatches(searchQuery); highlightMatches(searchQuery);

Loading…
Cancel
Save