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