git-svn-id: https://msi/svn/firstRepo/WebClient/branches/Manut_4.0.0@88 0f545695-f87b-41b6-9a03-7f16563b5454
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
define(['jquery', 'underscore', 'backbone', 'controls/footer/footer', 'controls/header/header', 'classes/profile'],
|
define(['jquery', 'underscore', 'backbone', 'controls/footer/footer', 'controls/header/header', 'classes/profile', 'text!modules/base/popupInAppDlg.html'],
|
||||||
function($, _, Backbone, Footer, Header, Profile){
|
function($, _, Backbone, Footer, Header, Profile, popupInAppDlgTemplate){
|
||||||
|
|
||||||
var BaseView = Backbone.View.extend({
|
var BaseView = Backbone.View.extend({
|
||||||
|
|
||||||
@@ -7,6 +7,7 @@ function($, _, Backbone, Footer, Header, Profile){
|
|||||||
header: null,
|
header: null,
|
||||||
footer: null,
|
footer: null,
|
||||||
created: true,
|
created: true,
|
||||||
|
popupInAppDlgTmpl: _.template(popupInAppDlgTemplate),
|
||||||
|
|
||||||
initialize: function () {
|
initialize: function () {
|
||||||
this.header = new Header({ title: "Il Lievitario"});
|
this.header = new Header({ title: "Il Lievitario"});
|
||||||
@@ -30,12 +31,14 @@ function($, _, Backbone, Footer, Header, Profile){
|
|||||||
if(this.created === true)
|
if(this.created === true)
|
||||||
{
|
{
|
||||||
this.header.render();
|
this.header.render();
|
||||||
this.footer.render();
|
this.footer.render();
|
||||||
//add the attribute 'data-role="page" ' for each view's div
|
//add the attribute 'data-role="page" ' for each view's div
|
||||||
this.$el.attr('data-role', 'page');
|
this.$el.attr('data-role', 'page');
|
||||||
this.$el.attr('data-theme', Profile.data.tema);
|
this.$el.attr('data-theme', Profile.data.tema);
|
||||||
this.$el.attr('stay-in-page', this.isStayInPage());
|
this.$el.attr('stay-in-page', this.isStayInPage());
|
||||||
this.$el.attr('id', this.id);
|
this.$el.attr('id', this.id);
|
||||||
|
|
||||||
|
this.$el.append(this.popupInAppDlgTmpl());
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShowing: null,
|
onShowing: null,
|
||||||
|
|||||||
@@ -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
@@ -36,9 +36,9 @@ define(['jquery', 'underscore', 'backbone',
|
|||||||
if (self.activeView.onShowed !== null)
|
if (self.activeView.onShowed !== null)
|
||||||
self.activeView.onShowed();
|
self.activeView.onShowed();
|
||||||
|
|
||||||
// if (self.fastClickInstance !== null)
|
if( /FB_IAB|FB4A|FBAV/i.test(myManifest.Agent.ua) ) {
|
||||||
// self.fastClickInstance.destroy();
|
self.activeView.$el.find('#inAppDlg').popup("open");
|
||||||
// self.fastClickInstance = FastClick.attach(document.body);
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
//define routes and mapping route to the function
|
//define routes and mapping route to the function
|
||||||
|
|||||||
+2
-2
@@ -1,4 +1,4 @@
|
|||||||
MAJOR=4
|
MAJOR=4
|
||||||
MINOR=0
|
MINOR=0
|
||||||
PATCH=1
|
PATCH=2
|
||||||
BUILD=3
|
BUILD=0
|
||||||
|
|||||||
Reference in New Issue
Block a user