From f12b579c29fdf287a58fe4d0a5ac32b89c336075 Mon Sep 17 00:00:00 2001 From: Matchu Date: Wed, 2 Apr 2014 15:15:17 -0500 Subject: [PATCH] whoops, switch from advanced on form submit so that window resizes don't also trigger it :P --- app/assets/javascripts/outfits/edit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/outfits/edit.js b/app/assets/javascripts/outfits/edit.js index 1c1ee6ee..6670e1d6 100644 --- a/app/assets/javascripts/outfits/edit.js +++ b/app/assets/javascripts/outfits/edit.js @@ -1131,6 +1131,7 @@ View.Search = function (wardrobe) { form.submit(function (e) { e.preventDefault(); current_query = $(this).find('input[name=query]').val(); + wrapper.removeClass('advanced'); loadPage(1); }); @@ -1156,7 +1157,6 @@ View.Search = function (wardrobe) { help_el.show(); } wrapper.toggleClass('has-results', items.length > 0); - wrapper.removeClass('advanced'); fit(); });