From: Anthony Talarico Date: Fri, 18 Dec 2015 21:33:54 +0000 (-0500) Subject: added onchange function to dropdown X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=f0d76698873849499faf57ac32972e7405651c2d;p=WP-Themes%2Fmichsci.git added onchange function to dropdown --- diff --git a/js/app.js b/js/app.js index f43ce1f..a04038c 100644 --- a/js/app.js +++ b/js/app.js @@ -35,4 +35,8 @@ $(document).ready(function () { document.cookie = "view=grid"; location.reload(); }); + + $("#categoryDropdown").change(function() { + $("#catSubmit").submit(); + }); }); diff --git a/js/custom/upcp.js b/js/custom/upcp.js index bc0040f..fa1096c 100644 --- a/js/custom/upcp.js +++ b/js/custom/upcp.js @@ -15,4 +15,8 @@ $(document).ready(function () { document.cookie = "view=grid"; location.reload(); }); + + $("#categoryDropdown").change(function() { + $("#catSubmit").submit(); + }); }); diff --git a/scss/_body.scss b/scss/_body.scss index 22978b3..2eff78f 100644 --- a/scss/_body.scss +++ b/scss/_body.scss @@ -106,4 +106,7 @@ body { height: 42px; width: 245px; border-bottom: 1px solid lightgrey; +} +#catSearchBtn{ + } \ No newline at end of file