From: Anthony Talarico Date: Thu, 27 Apr 2017 19:48:25 +0000 (-0400) Subject: adding search filter preservation X-Git-Tag: v1.0.0^2~117 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=3d8a6b04f6b2c154e1a76131954dfb49894e5ada;p=WP-Themes%2Fmichigantrailmaps.git adding search filter preservation using js to preserve category search options when a category is selected from the search header --- diff --git a/js/app.js b/js/app.js index fe74d93..b120116 100644 --- a/js/app.js +++ b/js/app.js @@ -31,7 +31,7 @@ $(document).ready(function () { // member info data on change counties.on('change', function(){ - $('option:selected', this).attr('selected', 'selected'); +// $('option:selected', this).attr('selected', 'selected'); var county = this.value; if(county === ''){ county = 'false'; @@ -49,7 +49,7 @@ $(document).ready(function () { success:function(data){ var county_data = data; - $('option:selected', this).attr('selected', 'selected'); +// $('option:selected', this).attr('selected', 'selected'); option = {}; cities.empty(); cities.append($('