Commit c003e61c by Ibrahim Awwal

Suppress underscore errors when not on the right page. Ideally page specific JS…

Suppress underscore errors when not on the right page. Ideally page specific JS execution would take care of this.
parent c9e93356
if Backbone? if Backbone?
class @DiscussionThreadListView extends Backbone.View class @DiscussionThreadListView extends Backbone.View
template: _.template($("#thread-list-template").html())
events: events:
"click .search": "showSearch" "click .search": "showSearch"
"click .browse": "toggleTopicDrop" "click .browse": "toggleTopicDrop"
...@@ -17,6 +16,7 @@ if Backbone? ...@@ -17,6 +16,7 @@ if Backbone?
@sidebar_padding = 10 @sidebar_padding = 10
@sidebar_header_height = 87 @sidebar_header_height = 87
@boardName @boardName
@template = _.template($("#thread-list-template").html())
reloadDisplayedCollection: (thread) => reloadDisplayedCollection: (thread) =>
thread_id = thread.get('id') thread_id = thread.get('id')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment