whoops, switch from advanced on form submit so that window resizes don't

also trigger it :P
This commit is contained in:
Emi Matchu 2014-04-02 15:15:17 -05:00
parent 2a82e4badd
commit f12b579c29

View file

@ -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();
}); });