From: Chuck Scott Date: Thu, 29 Nov 2018 20:57:02 +0000 (-0500) Subject: Removed some console.log debug output used for work on location mapping. X-Git-Tag: v1.7.14^2~15 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=dd23de57d9d8cbe0b25aaa4d5e7c4dbf4806f760;p=WP-Plugins%2Fglm-member-db-events.git Removed some console.log debug output used for work on location mapping. --- diff --git a/views/admin/events/edit.html b/views/admin/events/edit.html index 3f2770b..17921cd 100755 --- a/views/admin/events/edit.html +++ b/views/admin/events/edit.html @@ -1283,15 +1283,6 @@ var addrCountry = $('#country_' + locID).val(); var addrZip = $('#zip_' + locID).val(); -console.log({ - format: 'json', - street: addrStreet, - city: addrCity, - state: addrState, - country: addrCountry, - postalcode: addrZip -}); - var location = $.getJSON( nominatimAPI, { format: 'json', street: addrStreet, @@ -1305,17 +1296,8 @@ console.log({ alert('Sorry, we had a communications failure. 2'); }) .done(function( data ) { -console.log(data); - if( !data[0] || !data[0].lat || !data[0].lon || data[0].type == 'unclassified') { -console.log({ - format: 'json', - street: addrStreet, - // city: addrCity, - state: addrState, - country: addrCountry, - postalcode: addrZip -}); + if( !data[0] || !data[0].lat || !data[0].lon || data[0].type == 'unclassified') { // Not found, try again without city name // Nominatim doesn't always find with the US ZIP preferred city name