slight changes
This commit is contained in:
@@ -27,7 +27,6 @@ Discussion = @Discussion
|
||||
Discussion.makeWmdEditor $content, $local, "reply-body"
|
||||
$local(".discussion-submit-post").click -> handleSubmitReply(this)
|
||||
$local(".discussion-cancel-post").click -> handleCancelReply(this)
|
||||
$local(".discussion-link").hide()
|
||||
$discussionContent.attr("status", "reply")
|
||||
|
||||
handleCancelReply = (elem) ->
|
||||
@@ -61,7 +60,6 @@ Discussion = @Discussion
|
||||
anonymous: anonymous
|
||||
autowatch: autowatch
|
||||
success: Discussion.formErrorHandler($local(".discussion-errors"), (response, textStatus) ->
|
||||
console.log response
|
||||
$comment = $(response.html)
|
||||
$content.children(".comments").prepend($comment)
|
||||
Discussion.setWmdContent $content, $local, "reply-body", ""
|
||||
|
||||
@@ -104,7 +104,6 @@ initializeFollowThread = (index, thread) ->
|
||||
body: body
|
||||
tags: tags
|
||||
success: Discussion.formErrorHandler($local(".new-post-form-error"), (response, textStatus) ->
|
||||
console.log response
|
||||
$thread = $(response.html)
|
||||
$discussion.children(".threads").prepend($thread)
|
||||
Discussion.setWmdContent $discussion, $local, "new-post-body", ""
|
||||
|
||||
@@ -92,7 +92,6 @@ wmdEditors = {}
|
||||
imageUploadUrl = Discussion.urlFor('upload')
|
||||
editor = Markdown.makeWmdEditor elem, appended_id, imageUploadUrl
|
||||
wmdEditors["#{cls_identifier}-#{id}"] = editor
|
||||
console.log wmdEditors
|
||||
editor
|
||||
|
||||
getWmdEditor: ($content, $local, cls_identifier) ->
|
||||
@@ -106,8 +105,6 @@ wmdEditors = {}
|
||||
setWmdContent: ($content, $local, cls_identifier, text) ->
|
||||
id = $content.attr("_id")
|
||||
$local("#wmd-input-#{cls_identifier}-#{id}").val(text)
|
||||
console.log wmdEditors
|
||||
console.log "#{cls_identifier}-#{id}"
|
||||
wmdEditors["#{cls_identifier}-#{id}"].refreshPreview()
|
||||
|
||||
getContentInfo: (id, attr) ->
|
||||
|
||||
Reference in New Issue
Block a user