v1.18.x
barisusakli 10 years ago
parent 3ea8d092aa
commit 459e51862a

@ -434,11 +434,15 @@ app.cacheBuster = null;
searchFields = $("#search-fields"),
searchInput = $('#search-fields input');
$('#advanced-search').on('mousedown', function() {
ajaxify.go('/search');
});
$('#search-form').on('submit', dismissSearch);
searchInput.on('blur', dismissSearch);
function dismissSearch(){
searchFields.hide();
searchFields.addClass('hide');
searchButton.show();
}
@ -469,7 +473,7 @@ app.cacheBuster = null;
};
app.prepareSearch = function() {
$("#search-fields").removeClass('hide').show();
$("#search-fields").removeClass('hide');
$("#search-button").hide();
$('#search-fields input').focus();
};

Loading…
Cancel
Save