git-svn-id: https://msi/svn/firstRepo/WebClient/branches/NewRelease@60 0f545695-f87b-41b6-9a03-7f16563b5454
This commit is contained in:
@@ -92,7 +92,7 @@ define(['jquery', 'underscore', 'backbone','text!modules/settings/settingsViewTe
|
||||
Profile.data.dataSpacc.provincia + "+" + Profile.data.dataSpacc.stato + "&sensor=false",
|
||||
Type: "GET"
|
||||
}).then(function ( response ) {
|
||||
if(response.results.length == 1)
|
||||
if(response.results.length > 0)
|
||||
{
|
||||
Profile.data.dataSpacc.lat = response.results[0].geometry.location.lat;
|
||||
Profile.data.dataSpacc.long = response.results[0].geometry.location.lng;
|
||||
|
||||
Reference in New Issue
Block a user