Commit 54e009f0 by Carlos Andrés Rocha

Fix error when selecting all boards on the discussion pane

parent 87549631
...@@ -243,8 +243,9 @@ if Backbone? ...@@ -243,8 +243,9 @@ if Backbone?
@setTopic(event) # just sets the title for the dropdown @setTopic(event) # just sets the title for the dropdown
item = $(event.target).closest('li') item = $(event.target).closest('li')
if item.find("span.board-name").data("discussion_id") == "#all" if item.find("span.board-name").data("discussion_id") == "#all"
item = item.parent()
@discussionIds = "" @discussionIds = ""
@clearSearch()
else
discussionIds = _.map item.find(".board-name[data-discussion_id]"), (board) -> $(board).data("discussion_id").id discussionIds = _.map item.find(".board-name[data-discussion_id]"), (board) -> $(board).data("discussion_id").id
@retrieveDiscussions(discussionIds) @retrieveDiscussions(discussionIds)
......
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