summaryrefslogtreecommitdiff
path: root/public/assets/js/lib/views/stream/index.js
diff options
context:
space:
mode:
authorjulian laplace <julescarbon@gmail.com>2022-10-27 14:01:25 +0200
committerjulian laplace <julescarbon@gmail.com>2022-10-27 14:01:25 +0200
commitbf8213da7a459540ff0ab820c2353e0c79c66702 (patch)
tree87b67b9aeab5bf903d415fd3ffa82b70983021cd /public/assets/js/lib/views/stream/index.js
parent1045c5c2a724274b150d0a18e07b772eb7b740e5 (diff)
fix flags
Diffstat (limited to 'public/assets/js/lib/views/stream/index.js')
-rw-r--r--public/assets/js/lib/views/stream/index.js3
1 files changed, 2 insertions, 1 deletions
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")