From 279ca7c208f6f645ef9a2c91e8a9ee263652d644 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 13 Dec 2017 00:22:20 +0100 Subject: sort threads --- public/assets/js/lib/views/index/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'public/assets/js/lib/views/index/index.js') diff --git a/public/assets/js/lib/views/index/index.js b/public/assets/js/lib/views/index/index.js index 21aec39..0f2a80e 100644 --- a/public/assets/js/lib/views/index/index.js +++ b/public/assets/js/lib/views/index/index.js @@ -9,17 +9,20 @@ var IndexView = View.extend({ initialize: function(opt){ // opt.parent = parent this.hootbox = new HootBox ({ parent: this }) - this.threadbox = new ThreadBox ({ parent: this, latest: true, welcome: true, }) + this.threadbox = new ThreadBox ({ parent: this }) this.lastlog = new LastLog ({ parent: this }) }, load: function(keyword){ if (keyword) { $(".subtitle").html('< Home') + this.threadbox.options.latest = false this.threadbox.options.welcome = false $.get(this.keywordAction + keyword, this.populate.bind(this)) } else { + this.threadbox.options.latest = true + this.threadbox.options.welcome = true $.get(this.action, this.populate.bind(this)) } }, -- cgit v1.2.3-70-g09d2