From bf8213da7a459540ff0ab820c2353e0c79c66702 Mon Sep 17 00:00:00 2001 From: julian laplace Date: Thu, 27 Oct 2022 14:01:25 +0200 Subject: fix flags --- public/assets/js/lib/views/stream/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (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 e961fc2..bfd042a 100644 --- a/public/assets/js/lib/views/stream/index.js +++ b/public/assets/js/lib/views/stream/index.js @@ -10,6 +10,7 @@ var StreamView = View.extend({ load: function ({ ...target }) { $("body").addClass("index"); + this.target = target; console.log("target", target); $.get(this.action, target, this.populate.bind(this)); }, @@ -17,7 +18,7 @@ var StreamView = View.extend({ populate: function (data) { $("body").removeClass("loading"); this.data = data; - this.hootfilters.load(data); + this.hootfilters.load(data, this.target); this.hootstream.load(data, this.hootfilters.state); if (data.mail.count) { $(".alert") -- cgit v1.2.3-70-g09d2