git-svn-id: https://msi/svn/firstRepo/WebClient/branches/NewRelease@60 0f545695-f87b-41b6-9a03-7f16563b5454

This commit is contained in:
2016-02-08 22:10:13 +00:00
parent 7737c750eb
commit 43c1245005
6 changed files with 19 additions and 16 deletions
+1 -1
View File
@@ -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;