From: Anthony Talarico Date: Mon, 1 May 2017 19:38:36 +0000 (-0400) Subject: adding test complete function for the ajax calls to test speed in the search widget X-Git-Tag: v1.0.0^2~105 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=dd608b5190bfcf1d602a71b4acb7c12a2d915a44;p=WP-Themes%2Fmichigantrailmaps.git adding test complete function for the ajax calls to test speed in the search widget added complete function in the ajax calls for the header search to test ajax speed --- diff --git a/js/app.js b/js/app.js index 65e9171..8915939 100644 --- a/js/app.js +++ b/js/app.js @@ -46,6 +46,7 @@ $(document).ready(function () { action: "trailmaps", county: county, }, + complete: console.log("done"), success:function(data){ var county_data = data; @@ -78,6 +79,7 @@ $(document).ready(function () { action: "trailmaps", region: region, }, + complete: console.log("done"), success:function(data){ var region_data = data; @@ -121,13 +123,14 @@ $(document).ready(function () { others: {'destination' : $('#destination-search option:selected').val(), 'park' : $('#park-search option:selected').val()} }, + complete: console.log("done"), success:function(data){ var activity_data = data; - console.log(data.test); + option = {}; $('#destination-search option').not(':eq(0), :selected').remove(); var selected = $('#destination-search option:selected').val(); - console.info(data); + // counties.append($('