whoops, switch from advanced on form submit so that window resizes don't
also trigger it :P
This commit is contained in:
parent
2a82e4badd
commit
f12b579c29
1 changed files with 1 additions and 1 deletions
|
@ -1131,6 +1131,7 @@ View.Search = function (wardrobe) {
|
||||||
form.submit(function (e) {
|
form.submit(function (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
current_query = $(this).find('input[name=query]').val();
|
current_query = $(this).find('input[name=query]').val();
|
||||||
|
wrapper.removeClass('advanced');
|
||||||
loadPage(1);
|
loadPage(1);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -1156,7 +1157,6 @@ View.Search = function (wardrobe) {
|
||||||
help_el.show();
|
help_el.show();
|
||||||
}
|
}
|
||||||
wrapper.toggleClass('has-results', items.length > 0);
|
wrapper.toggleClass('has-results', items.length > 0);
|
||||||
wrapper.removeClass('advanced');
|
|
||||||
fit();
|
fit();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue