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.js22
1 files changed, 4 insertions, 18 deletions
diff --git a/public/assets/js/lib/views/stream/index.js b/public/assets/js/lib/views/stream/index.js
index d55a9c3..76dbfa8 100644
--- a/public/assets/js/lib/views/stream/index.js
+++ b/public/assets/js/lib/views/stream/index.js
@@ -1,8 +1,5 @@
var StreamView = View.extend({
- events: {},
-
- action: "/api/stream",
- keywordAction: "/api/keyword/",
+ action: "/api/stream/",
initialize: function (opt) {
// opt.parent = parent
@@ -14,21 +11,10 @@ var StreamView = View.extend({
// this.countdown = new Countdown({ parent: this });
},
- load: function (keyword) {
+ load: function ({ ...target }) {
$("body").addClass("index");
- // if (keyword) {
- // $(".subtitle").html(
- // '<a href="/">&lt; Home</a> &middot; <a href="/keywords">Keywords</a>'
- // );
- // this.threadbox.options.latest = false;
- // this.threadbox.options.welcome = false;
- // $.get(this.keywordAction + keyword, this.populate.bind(this));
- // } else {
- // this.hootbox.options.required = true;
- // this.threadbox.options.latest = true;
- // this.threadbox.options.welcome = true;
- // }
- $.get(this.action, this.populate.bind(this));
+ console.log(target);
+ $.get(this.action, target, this.populate.bind(this));
},
populate: function (data) {