From 3d8a6b04f6b2c154e1a76131954dfb49894e5ada Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Thu, 27 Apr 2017 15:48:25 -0400 Subject: [PATCH] adding search filter preservation using js to preserve category search options when a category is selected from the search header --- js/app.js | 201 ++++++++++++++++++++++++++------------ js/custom/headerSearch.js | 201 ++++++++++++++++++++++++++------------ 2 files changed, 274 insertions(+), 128 deletions(-) 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($('