summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/lib/blogs/HubView.js
diff options
context:
space:
mode:
Diffstat (limited to 'StoneIsland/www/js/lib/blogs/HubView.js')
-rwxr-xr-xStoneIsland/www/js/lib/blogs/HubView.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/StoneIsland/www/js/lib/blogs/HubView.js b/StoneIsland/www/js/lib/blogs/HubView.js
index 687a3b95..9433b686 100755
--- a/StoneIsland/www/js/lib/blogs/HubView.js
+++ b/StoneIsland/www/js/lib/blogs/HubView.js
@@ -21,11 +21,16 @@ var HubView = ScrollableView.extend({
this.deferScrollToTop()
app.footer.hide()
document.body.className = "hub"
+ if (! this.populated) {
+ this.populate( BACKUP_DB.hub )
+ }
},
galleries: {},
+ populated: false,
populate: function(data){
// sort posts by date, reversed
+ this.populated = true
this.data = data.map(function(s){
return [ +moment(s.date), s ]
}).sort(function(a,b){