diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-11-06 02:07:18 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-11-06 02:07:18 -0500 |
| commit | ebf29872c4e9108776cd5022450a7d6274ed5d5f (patch) | |
| tree | f38219c802ff3ba97b7e79c75e8bd2b0362b511f /StoneIsland/www/js/lib/blogs/HubView.js | |
| parent | 7045fe96bc33fe92ba54a837e637145fe9bbbd23 (diff) | |
galleries on hub view
Diffstat (limited to 'StoneIsland/www/js/lib/blogs/HubView.js')
| -rw-r--r-- | StoneIsland/www/js/lib/blogs/HubView.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/StoneIsland/www/js/lib/blogs/HubView.js b/StoneIsland/www/js/lib/blogs/HubView.js index 2f04c5cb..5832eb2e 100644 --- a/StoneIsland/www/js/lib/blogs/HubView.js +++ b/StoneIsland/www/js/lib/blogs/HubView.js @@ -13,6 +13,7 @@ var HubView = ScrollableView.extend({ }, show: function(){ + this.deferScrollToTop() document.body.className = "hub" }, @@ -22,7 +23,7 @@ var HubView = ScrollableView.extend({ this.$content.empty() // id date subtitle body link image[uri caption] this.data.forEach(function(row){ - console.log(row) + // console.log(row) var t = this.template.replace(/{{id}}/, row.id) .replace(/{{date}}/, row.date) .replace(/{{title}}/, row.title) @@ -56,7 +57,7 @@ var HubView = ScrollableView.extend({ else { // single image var el = document.createElement("div") - el.style.backgroundImage = "url(" + img.uri + ")" + el.style.backgroundImage = "url(" + row.image[0].uri + ")" el.className = "item" $(".gallery-" + row.id).append(el) |
