Commit aaa54018 by Tom Giannattasio

Merge branch 'feature/tomg/new-discussions' of github.com:MITx/mitx into…

Merge branch 'feature/tomg/new-discussions' of github.com:MITx/mitx into feature/tomg/new-discussions
parents d7b3ac54 12b6feff
......@@ -16,7 +16,6 @@ if Backbone?
urlMappers: {}
urlFor: (name) ->
console.log @
@urlMappers[name].apply(@)
can: (action) ->
......@@ -24,7 +23,6 @@ if Backbone?
updateInfo: (info) ->
if info
console.log info.ability
@set('ability', info.ability)
@set('voted', info.voted)
@set('subscribed', info.subscribed)
......@@ -248,7 +246,6 @@ if Backbone?
@model.set('votes_point', response.votes.point)
toggleVote: (event) ->
console.log("HERE")
$elem = $(event.target)
value = $elem.attr("value")
$elem.toggleClass("is-cast")
......
......@@ -111,7 +111,7 @@ class @DiscussionThreadView extends DiscussionContentView
event.preventDefault()
url = @model.urlFor('reply')
body = @$("#wmd-input").val()
response = new Comment(body: body, created_at: (new Date()).toISOString(), username: window.user.get("username"), votes: { up_count: 0 })
response = new Comment(body: body, created_at: (new Date()).toISOString(), username: window.user.get("username"), votes: { up_count: 0 }, endorsed: false)
@renderResponse(response)
@addComment()
......
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