collapse search on empty string
This commit is contained in:
parent
c8b9833dee
commit
bbd11adefa
1 changed files with 3 additions and 1 deletions
|
@ -1173,7 +1173,9 @@ View.Search = function (wardrobe) {
|
||||||
|
|
||||||
form.submit(function (e) {
|
form.submit(function (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
current_query = addAutofilter($(this).find('input[name=query]').val());
|
var given_query = $(this).find('input[name=query]').val();
|
||||||
|
if (given_query) given_query = addAutofilter(given_query);
|
||||||
|
current_query = given_query;
|
||||||
wrapper.removeClass('advanced');
|
wrapper.removeClass('advanced');
|
||||||
loadPage(1);
|
loadPage(1);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue