git-svn-id: https://msi/svn/firstRepo/WebClient/branches/NewRelease@33 0f545695-f87b-41b6-9a03-7f16563b5454
This commit is contained in:
+29
-29
@@ -1,30 +1,30 @@
|
||||
define(['jquery', 'underscore', 'backbone','text!modules/faq/faqViewTemplate.html', 'modules/base/baseView'],
|
||||
function($, _, Backbone, faqViewTemplate, BaseView){
|
||||
define(['jquery', 'underscore', 'backbone', 'text!modules/faq/faqViewTemplate.html', 'modules/base/baseView'],
|
||||
function ($, _, Backbone, faqViewTemplate, BaseView) {
|
||||
|
||||
var FaqView = BaseView.extend({
|
||||
|
||||
//initialize template
|
||||
template:_.template(faqViewTemplate),
|
||||
|
||||
initialize: function () {
|
||||
FaqView.__super__.initialize.call(this);
|
||||
//this.header.title = "pippo";
|
||||
},
|
||||
|
||||
//render the content into div of view
|
||||
render: function(){
|
||||
//this.header.title = "pippo";
|
||||
FaqView.__super__.render.call(this);
|
||||
//this.el is the root element of Backbone.View. By default, it is a div.
|
||||
//$el is cached jQuery object for the view's element.
|
||||
//append the compiled template into view div container
|
||||
this.$el.append(this.header.$el);
|
||||
this.$el.append(this.template());
|
||||
this.$el.append(this.footer.$el);
|
||||
this.$el.find("#faqBtn").addClass("ui-btn-active");
|
||||
//return to enable chained calls
|
||||
return this;
|
||||
}
|
||||
});
|
||||
return FaqView;
|
||||
});
|
||||
var FaqView = BaseView.extend({
|
||||
//initialize template
|
||||
template: _.template(faqViewTemplate),
|
||||
initialize: function () {
|
||||
this.id = "FaqView";
|
||||
FaqView.__super__.initialize.call(this);
|
||||
},
|
||||
//render the content into div of view
|
||||
render: function () {
|
||||
if (this.created === true)
|
||||
{
|
||||
//this.header.title = "pippo";
|
||||
FaqView.__super__.render.call(this);
|
||||
//this.el is the root element of Backbone.View. By default, it is a div.
|
||||
//$el is cached jQuery object for the view's element.
|
||||
//append the compiled template into view div container
|
||||
this.$el.append(this.header.$el);
|
||||
this.$el.append(this.template());
|
||||
this.$el.append(this.footer.$el);
|
||||
}
|
||||
this.$el.find("#faqBtn").addClass("ui-btn-active");
|
||||
//return to enable chained calls
|
||||
return this;
|
||||
}
|
||||
});
|
||||
return FaqView;
|
||||
});
|
||||
@@ -1,6 +1,6 @@
|
||||
<div data-role="content">
|
||||
<h1>Lo sai che?</h1>
|
||||
<ul data-role="listview" id="faqList">
|
||||
<ul data-role="listview" id="faqList" style="padding-left: 15px; padding-right: 15px;">
|
||||
<li data-role="collapsible" data-iconpos="left" data-inset="false"><h2>PM. Iniziare</h2> <div data-role="collapsible"><h4>Come ottenere il Lievito Madre</h4><p>Il modo più semplice ed immediato è trovare uno spacciatore che ci doni gratuitamente un pezzetto del suo Lievito Madre.
|
||||
Al link seguente trovi la mappa degli spacciatori del gruppo e quella generale della comunità del cibo.<br>
|
||||
<a href="https://www.facebook.com/notes/gruppo-la-pasta-madre/la-mappa-spacciatori-del-gruppo/733005206786758">Link Gruppo FB</a><br>
|
||||
|
||||
Reference in New Issue
Block a user