git-svn-id: https://msi/svn/firstRepo/WebClient/branches/NewRelease@42 0f545695-f87b-41b6-9a03-7f16563b5454
This commit is contained in:
@@ -24,22 +24,25 @@ define(['jquery', 'underscore', 'backbone','text!modules/settings/settingsViewTe
|
|||||||
if($('#mapSpacc').is(':visible'))
|
if($('#mapSpacc').is(':visible'))
|
||||||
{
|
{
|
||||||
Profile.data.isSpacc = this.$el.find('#spacc-PMChk').prop('checked')?"1":"0";
|
Profile.data.isSpacc = this.$el.find('#spacc-PMChk').prop('checked')?"1":"0";
|
||||||
Profile.data.email = this.$el.find('#email').val();
|
if(Profile.data.isSpacc==="1")
|
||||||
Profile.data.dataSpacc.provincia = this.$el.find('#prov').val();
|
{
|
||||||
Profile.data.dataSpacc.comune = this.$el.find('#comune').val();
|
Profile.data.email = this.$el.find('#email').val();
|
||||||
Profile.data.dataSpacc.cap = this.$el.find('#CAP').val();
|
Profile.data.dataSpacc.provincia = this.$el.find('#prov').val();
|
||||||
Profile.data.dataSpacc.tipopm = this.$el.find('#tPM').val();
|
Profile.data.dataSpacc.comune = this.$el.find('#comune').val();
|
||||||
Profile.data.dataSpacc.privacy = this.$el.find('#privacyChk').prop('checked')?"1":"0";
|
Profile.data.dataSpacc.cap = this.$el.find('#CAP').val();
|
||||||
|
Profile.data.dataSpacc.tipopm = this.$el.find('#tPM').val();
|
||||||
|
Profile.data.dataSpacc.privacy = this.$el.find('#privacyChk').prop('checked')?"1":"0";
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: "http://maps.google.com/maps/api/geocode/json?address=" +
|
url: "http://maps.google.com/maps/api/geocode/json?address=" +
|
||||||
Profile.data.dataSpacc.comune + "+" +
|
Profile.data.dataSpacc.comune + "+" +
|
||||||
Profile.data.dataSpacc.comune + "+" +
|
Profile.data.dataSpacc.comune + "+" +
|
||||||
Profile.data.dataSpacc.provincia + "+italia&sensor=false",
|
Profile.data.dataSpacc.provincia + "+italia&sensor=false",
|
||||||
Type: "GET"
|
Type: "GET"
|
||||||
}).then(function ( response ) {
|
}).then(function ( response ) {
|
||||||
|
|
||||||
});
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user