summaryrefslogtreecommitdiff
path: root/public/assets/js/lib/views/stream/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/assets/js/lib/views/stream/index.js')
-rw-r--r--public/assets/js/lib/views/stream/index.js15
1 files changed, 6 insertions, 9 deletions
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";
},