summaryrefslogtreecommitdiff
path: root/public/assets/js/lib/views/stream/index.js
diff options
context:
space:
mode:
authorjulian laplace <julescarbon@gmail.com>2022-10-27 00:06:16 +0200
committerjulian laplace <julescarbon@gmail.com>2022-10-27 00:06:16 +0200
commitae29144f18bbd0cac3c65ae4bf869fade1c5ffb0 (patch)
tree9585b4f01783ae5c2fdfc40eccb4cbebf0c5c3df /public/assets/js/lib/views/stream/index.js
parentc7f67886297736cea067f5213b4062621ebe43f7 (diff)
fixing things :)
Diffstat (limited to 'public/assets/js/lib/views/stream/index.js')
-rw-r--r--public/assets/js/lib/views/stream/index.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/public/assets/js/lib/views/stream/index.js b/public/assets/js/lib/views/stream/index.js
index 8ef9208..e961fc2 100644
--- a/public/assets/js/lib/views/stream/index.js
+++ b/public/assets/js/lib/views/stream/index.js
@@ -10,13 +10,14 @@ var StreamView = View.extend({
load: function ({ ...target }) {
$("body").addClass("index");
- console.log(target);
+ console.log("target", target);
$.get(this.action, target, this.populate.bind(this));
},
populate: function (data) {
$("body").removeClass("loading");
this.data = data;
+ this.hootfilters.load(data);
this.hootstream.load(data, this.hootfilters.state);
if (data.mail.count) {
$(".alert")
@@ -43,6 +44,7 @@ var StreamView = View.extend({
},
onFilter: function (filters) {
+ console.log("onfilter");
this.hootstream.build(filters);
},