From d393b5478c0278956d5c0cbd26e0e86d9428cc1f Mon Sep 17 00:00:00 2001 From: julian laplace Date: Wed, 26 Oct 2022 23:03:51 +0200 Subject: filters --- public/assets/js/lib/views/stream/index.js | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'public/assets/js/lib/views/stream/index.js') diff --git a/public/assets/js/lib/views/stream/index.js b/public/assets/js/lib/views/stream/index.js index 76dbfa8..8ef9208 100644 --- a/public/assets/js/lib/views/stream/index.js +++ b/public/assets/js/lib/views/stream/index.js @@ -3,12 +3,9 @@ var StreamView = View.extend({ initialize: function (opt) { // opt.parent = parent - // this.hootbox = new HootBox({ parent: this }); this.hootform = new HootForm({ parent: this }); this.hootstream = new HootStream({ parent: this }); - // this.threadbox = new ThreadBox({ parent: this }); - // this.lastlog = new LastLog({ parent: this }); - // this.countdown = new Countdown({ parent: this }); + this.hootfilters = new HootFilters({ parent: this }); }, load: function ({ ...target }) { @@ -20,11 +17,7 @@ var StreamView = View.extend({ populate: function (data) { $("body").removeClass("loading"); this.data = data; - this.hootstream.load(data); - // this.hootbox.load(data.hootbox); - // this.hootbox.hide(); - // this.threadbox.load(data); - // this.lastlog.load(data.lastlog); + this.hootstream.load(data, this.hootfilters.state); if (data.mail.count) { $(".alert") .show() @@ -49,6 +42,10 @@ var StreamView = View.extend({ this.populate(this.data); }, + onFilter: function (filters) { + this.hootstream.build(filters); + }, + success: function () { window.location.href = "/index"; }, -- cgit v1.2.3-70-g09d2