From de08ece8ba29e31cfcb767a7f3584a08bd871e46 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Wed, 26 Apr 2017 14:29:53 -0400 Subject: [PATCH] commenting out js that works the dropdown filtering for categories the header search dropdowns for the categories search fields are being commented out on dev55 until they are working --- js/app.js | 338 +++++++++++++++++++------------------- js/custom/headerSearch.js | 338 +++++++++++++++++++------------------- 2 files changed, 338 insertions(+), 338 deletions(-) diff --git a/js/app.js b/js/app.js index 855a57e..c922d08 100644 --- a/js/app.js +++ b/js/app.js @@ -48,7 +48,7 @@ $(document).ready(function () { }, success:function(data){ var county_data = data; - console.log(county_data.test); + $('option:selected', this).attr('selected', 'selected'); option = {}; cities.empty(); @@ -106,174 +106,174 @@ $(document).ready(function () { }); // categories on change - activities.on('change', function(){ - $('option:selected', this).attr('selected', 'selected'); - var activity = this.value; - var taxonomy = $('option:selected', this).attr('data-taxonomy'); - jQuery.ajax({ - type:"POST", - dataType: 'json', - url: ajaxurl, - data: { - action: "trailmaps", - activity: activity, - taxonomy: taxonomy - }, - success:function(data){ - var activity_data = data; - - option = {}; - $('#trail-counties option').not(':eq(0), :selected').remove(); - var selected = $('#trail-counties option:selected').val(); -// counties.append($('