diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-11-09 00:30:45 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-11-09 00:33:08 -0500 |
| commit | dad5f3f0c3c13e8334a6a0ea522c5a2bfe8cd830 (patch) | |
| tree | 61bf4e1e9d3718e363a6cf27cb85ba63316fa6b4 /StoneIsland/www/js/lib/blogs/FaqView.js | |
| parent | 8524ed64401bd53dce1b5412fb732c9667a66ecc (diff) | |
faq view and other structure
Diffstat (limited to 'StoneIsland/www/js/lib/blogs/FaqView.js')
| -rw-r--r-- | StoneIsland/www/js/lib/blogs/FaqView.js | 23 |
1 files changed, 23 insertions, 0 deletions
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, "<br>")) + } + +})
\ No newline at end of file |
