diff --git a/js/modules/base/baseView.js b/js/modules/base/baseView.js
index d0167b2..dfe2720 100644
--- a/js/modules/base/baseView.js
+++ b/js/modules/base/baseView.js
@@ -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,
diff --git a/js/modules/base/popupInAppDlg.html b/js/modules/base/popupInAppDlg.html
new file mode 100644
index 0000000..79a2963
--- /dev/null
+++ b/js/modules/base/popupInAppDlg.html
@@ -0,0 +1,15 @@
+
+
+
Attenzione
+
+
+
IMPORTANTE
+ Si stà utilizzando il lievitario all'interno dell'applicazione FB, non si garantisce il corretto funzionamento.
+ Si prega di utilizzare il lievitario all'interno dei browser del dispositivo.
+ E' possibile disattivare il caricamento all'interno dell'applicazione Facebook seguendo le istruzioni riportate QUI
+
+
+ OK
+
+
+
\ No newline at end of file
diff --git a/js/router.js b/js/router.js
index 6aaccb3..9099eb1 100644
--- a/js/router.js
+++ b/js/router.js
@@ -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
diff --git a/version.txt b/version.txt
index cbc799d..4d46e2b 100644
--- a/version.txt
+++ b/version.txt
@@ -1,4 +1,4 @@
MAJOR=4
MINOR=0
-PATCH=1
-BUILD=3
+PATCH=2
+BUILD=0