Removed some console.log debug output used for work on location mapping.
authorChuck Scott <cscott@gaslightmedia.com>
Thu, 29 Nov 2018 20:57:02 +0000 (15:57 -0500)
committerChuck Scott <cscott@gaslightmedia.com>
Thu, 29 Nov 2018 20:57:02 +0000 (15:57 -0500)
views/admin/events/edit.html

index 3f2770b..17921cd 100755 (executable)
                         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