From: Anthony Talarico Date: Wed, 26 Apr 2017 18:29:53 +0000 (-0400) Subject: commenting out js that works the dropdown filtering for categories X-Git-Tag: v1.0.0^2~128 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=de08ece8ba29e31cfcb767a7f3584a08bd871e46;p=WP-Themes%2Fmichigantrailmaps.git 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 --- 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($('