From: Anthony Talarico Date: Mon, 1 May 2017 20:09:45 +0000 (-0400) Subject: removing unecessary code from the ajax-search queries and testing the X-Git-Tag: v1.0.0^2~104 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=e78862437d6019de4a66a6682741632985413521;p=WP-Themes%2Fmichigantrailmaps.git removing unecessary code from the ajax-search queries and testing the ajax speed by removing the js code trying to figure out of the ajax calls are slow because of the network or the pending js operations that are done during the success functions --- diff --git a/js/app.js b/js/app.js index 8915939..aa970a2 100644 --- a/js/app.js +++ b/js/app.js @@ -123,7 +123,7 @@ $(document).ready(function () { others: {'destination' : $('#destination-search option:selected').val(), 'park' : $('#park-search option:selected').val()} }, - complete: console.log("done"), + complete: console.log("done"), success:function(data){ var activity_data = data; @@ -220,31 +220,31 @@ $(document).ready(function () { }, complete: console.log("done"), success:function(data){ + console.log("SUCCESS"); var destination_data = data; option = {}; $('#activity-search option').not(':eq(0), :selected').remove(); var selected = $('#activity-search option:selected').val(); // counties.append($('