diff options
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) |
