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'],
|
||||
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,
|
||||
|
||||
@@ -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)
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user