From dad5f3f0c3c13e8334a6a0ea522c5a2bfe8cd830 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 9 Nov 2015 00:30:45 -0500 Subject: faq view and other structure --- StoneIsland/www/js/lib/blogs/FaqView.js | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 StoneIsland/www/js/lib/blogs/FaqView.js (limited to 'StoneIsland/www/js/lib/blogs/FaqView.js') diff --git a/StoneIsland/www/js/lib/blogs/FaqView.js b/StoneIsland/www/js/lib/blogs/FaqView.js new file mode 100644 index 00000000..bce83d88 --- /dev/null +++ b/StoneIsland/www/js/lib/blogs/FaqView.js @@ -0,0 +1,23 @@ +var FaqView = ScrollableView.extend({ + + el: "#faq", + + events: { + }, + + initialize: function(){ + this.$content = this.$(".content") + this.$loader = this.$(".loader") + this.scroller = new IScroll('#faq', app.iscroll_optionsx) + }, + + show: function(){ + this.deferScrollToTop() + document.body.className = "faq" + }, + + populate: function(data){ + this.$content.html(data.body.replace(/\n/g, "
")) + } + +}) \ No newline at end of file -- cgit v1.2.3-70-g09d2