git-svn-id: https://msi/svn/firstRepo/WebClient/branches/NewRelease@46 0f545695-f87b-41b6-9a03-7f16563b5454
This commit is contained in:
@@ -46,7 +46,8 @@ define(['jquery', 'underscore', 'backbone','text!modules/settings/settingsViewTe
|
||||
Profile.data.dataSpacc.cap === "" ||
|
||||
Profile.data.dataSpacc.tipopm === "")
|
||||
{
|
||||
this.$el.find('#messaggio').html("<center><h1>ATTENZIONE</h1> devono essere settate tutte i campi</center>");
|
||||
self.$el.find('#titlePopup').html("Campi obbligatori");
|
||||
this.$el.find('#messaggio').html("<center><h1 style='color: red;'>ATTENZIONE</h1> devono essere settate tutte i campi</center>");
|
||||
this.$el.find('#popupDialog').popup("open");
|
||||
self._flagSave = false;
|
||||
return;
|
||||
@@ -54,7 +55,8 @@ define(['jquery', 'underscore', 'backbone','text!modules/settings/settingsViewTe
|
||||
|
||||
if(Profile.data.dataSpacc.privacy==="0")
|
||||
{
|
||||
this.$el.find('#messaggio').html("<center><h1>ATTENZIONE</h1> per proseguire si DEVE accettare l'informativa privacy</center>");
|
||||
self.$el.find('#titlePopup').html("Informativa privacy");
|
||||
this.$el.find('#messaggio').html("<center><h1 style='color: red;'>ATTENZIONE</h1> per proseguire è obbligatorio accettare l'informativa privacy</center>");
|
||||
this.$el.find('#popupDialog').popup("open");
|
||||
self._flagSave = false;
|
||||
return;
|
||||
@@ -72,8 +74,10 @@ define(['jquery', 'underscore', 'backbone','text!modules/settings/settingsViewTe
|
||||
Profile.data.dataSpacc.lat = response.results[0].geometry.location.lat;
|
||||
Profile.data.dataSpacc.long = response.results[0].geometry.location.lng;
|
||||
Profile.updateProfile(function(){
|
||||
self._flagSave = false;
|
||||
Backbone.history.loadUrl(Backbone.history.getFragment());
|
||||
self._flagSave = false;
|
||||
self.$el.find('#titlePopup').html("Salvataggio");
|
||||
self.$el.find('#messaggio').html("Impostazioni salvate con successo");
|
||||
self.$el.find('#popupDialog').popup("open");
|
||||
});
|
||||
}
|
||||
});
|
||||
@@ -83,7 +87,10 @@ define(['jquery', 'underscore', 'backbone','text!modules/settings/settingsViewTe
|
||||
{
|
||||
Profile.updateProfile(function(){
|
||||
self._flagSave = false;
|
||||
Backbone.history.loadUrl(Backbone.history.getFragment());
|
||||
self.$el.find('#titlePopup').html("Salvataggio");
|
||||
self.$el.find('#messaggio').html("Impostazioni salvate con successo");
|
||||
self.$el.find('#popupDialog').popup("open");
|
||||
//Backbone.history.loadUrl(Backbone.history.getFragment());
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
@@ -169,7 +169,7 @@ segnalazione inoltrata.</label>
|
||||
</div>
|
||||
<div data-role="popup" id="popupDialog">
|
||||
<div data-role="header">
|
||||
<h1>Avvertimento</h1>
|
||||
<h3 id="titlePopup"></h3>
|
||||
</div>
|
||||
<div role="main" class="ui-content">
|
||||
<p id="messaggio" style="text-align: center;font-style: italic;">
|
||||
|
||||
Reference in New Issue
Block a user