git-svn-id: https://msi/svn/firstRepo/WebClient/branches/Manut_4.0.0@88 0f545695-f87b-41b6-9a03-7f16563b5454

This commit is contained in:
2016-05-24 15:59:02 +00:00
parent b42cd2f23d
commit 7185e13017
4 changed files with 26 additions and 8 deletions
+6 -3
View File
@@ -1,5 +1,5 @@
define(['jquery', 'underscore', 'backbone', 'controls/footer/footer', 'controls/header/header', 'classes/profile'],
function($, _, Backbone, Footer, Header, Profile){
define(['jquery', 'underscore', 'backbone', 'controls/footer/footer', 'controls/header/header', 'classes/profile', 'text!modules/base/popupInAppDlg.html'],
function($, _, Backbone, Footer, Header, Profile, popupInAppDlgTemplate){
var BaseView = Backbone.View.extend({
@@ -7,6 +7,7 @@ function($, _, Backbone, Footer, Header, Profile){
header: null,
footer: null,
created: true,
popupInAppDlgTmpl: _.template(popupInAppDlgTemplate),
initialize: function () {
this.header = new Header({ title: "Il Lievitario"});
@@ -30,12 +31,14 @@ function($, _, Backbone, Footer, Header, Profile){
if(this.created === true)
{
this.header.render();
this.footer.render();
this.footer.render();
//add the attribute 'data-role="page" ' for each view's div
this.$el.attr('data-role', 'page');
this.$el.attr('data-theme', Profile.data.tema);
this.$el.attr('stay-in-page', this.isStayInPage());
this.$el.attr('id', this.id);
this.$el.append(this.popupInAppDlgTmpl());
}
},
onShowing: null,
+15
View File
@@ -0,0 +1,15 @@
<div data-role="popup" id="inAppDlg">
<div data-role="header">
<h1>Attenzione</h1>
</div>
<div role="main" class="ui-content">
<p style="text-align: center;font-style: italic;"><strong>IMPORTANTE</strong><br><br>
Si stà utilizzando il lievitario all'interno dell'applicazione FB, non si garantisce il corretto funzionamento.<br>
Si prega di utilizzare il lievitario all'interno dei browser del dispositivo.<br><br>
E' possibile disattivare il caricamento all'interno dell'applicazione Facebook seguendo le istruzioni riportate <a href="http://www.wired.it/mobile/app/2015/05/04/facebook-twitter-come-disattivare-browser/">QUI</a>
</p>
<p style="text-align: center;">
<a href="" class="ui-btn ui-corner-all ui-shadow ui-btn-inline ui-icon-check" data-rel="back">OK</a>
</p>
</div>
</div>
+3 -3
View File
@@ -36,9 +36,9 @@ define(['jquery', 'underscore', 'backbone',
if (self.activeView.onShowed !== null)
self.activeView.onShowed();
// if (self.fastClickInstance !== null)
// self.fastClickInstance.destroy();
// self.fastClickInstance = FastClick.attach(document.body);
if( /FB_IAB|FB4A|FBAV/i.test(myManifest.Agent.ua) ) {
self.activeView.$el.find('#inAppDlg').popup("open");
}
});
},
//define routes and mapping route to the function
+2 -2
View File
@@ -1,4 +1,4 @@
MAJOR=4
MINOR=0
PATCH=1
BUILD=3
PATCH=2
BUILD=0