git-svn-id: https://msi/svn/firstRepo/WebClient/branches/Manut_3.0.1@77 0f545695-f87b-41b6-9a03-7f16563b5454

This commit is contained in:
2016-03-06 22:02:12 +00:00
parent 2e557160f9
commit 8ba6571a7b
8 changed files with 87 additions and 58 deletions
+13 -3
View File
@@ -23,10 +23,15 @@ define(['jquery', 'underscore', 'backbone', 'text!modules/home/homeViewTemplate.
}
},
events: {
"click #noSpacc": "noSpacc",
},
freeWall: null,
noSpacc: function(){
window.localStorage.setItem("noSpacc", 1);
},
calculateSize: function(){
var size = 100;
var widthDevice = (window.innerWidth > 0) ? window.innerWidth : screen.width;
@@ -125,8 +130,7 @@ define(['jquery', 'underscore', 'backbone', 'text!modules/home/homeViewTemplate.
}
});
this.freeWall.fitWidth();
},
},
onShowed: function ()
{
var self = this;
@@ -137,7 +141,13 @@ define(['jquery', 'underscore', 'backbone', 'text!modules/home/homeViewTemplate.
{
this.changePicture(Profile.data.picture);
}
if(myManifest.Settings.ShowStartMessage &&
Profile.data.isSpacc === "0" &&
window.localStorage.getItem("noSpacc") === null)
{
this.$el.find("#nomeUtente").text(Profile.data.name);
this.$el.find("#messaggioSpacciatore").popup("open");
}
//Debug.writeMessage(myManifest.Agent.ua);
},
onClosing: function () {