diff --git a/lms/static/coffee/src/discussion/views/discussion_thread_view.coffee b/lms/static/coffee/src/discussion/views/discussion_thread_view.coffee index f99118f8fb..d7ca9d045b 100644 --- a/lms/static/coffee/src/discussion/views/discussion_thread_view.coffee +++ b/lms/static/coffee/src/discussion/views/discussion_thread_view.coffee @@ -3,7 +3,10 @@ if Backbone? events: "click .discussion-submit-post": "submitComment" - "click .thread-tag": "tagSelected" + + # TODO tags + # Until we decide what to do w/ tags, removing them. + #"click .thread-tag": "tagSelected" $: (selector) -> @$el.find(selector) @@ -23,7 +26,11 @@ if Backbone? @renderShowView() @renderAttrs() - @renderTags() + + # TODO tags + # Until we decide what to do w/ tags, removing them. + #@renderTags() + @$("span.timeago").timeago() @makeWmdEditor "reply-body" @renderResponses() @@ -33,16 +40,20 @@ if Backbone? if @responsesRequest? @responsesRequest.abort() - renderTags: -> - # tags - for tag in @model.get("tags") - if !tags - tags = $('
') - tags.append("#{tag}") - @$(".post-body").after(tags) + # TODO tags + # Until we decide what to do w/ tags, removing them. + #renderTags: -> + # # tags + # for tag in @model.get("tags") + # if !tags + # tags = $('
') + # tags.append("#{tag}") + # @$(".post-body").after(tags) - tagSelected: (e) -> - @trigger "tag:selected", $(e.target).html() + # TODO tags + # Until we decide what to do w tags, removing them. + #tagSelected: (e) -> + # @trigger "tag:selected", $(e.target).html() renderResponses: -> setTimeout(=> @@ -102,9 +113,12 @@ if Backbone? update: (event) => newTitle = @editView.$(".edit-post-title").val() - newTags = @editView.$(".edit-post-tags").val() newBody = @editView.$(".edit-post-body textarea").val() + # TODO tags + # Until we decide what to do w/ tags, removing them. + #newTags = @editView.$(".edit-post-tags").val() + url = DiscussionUtil.urlFor('update_thread', @model.id) DiscussionUtil.safeAjax @@ -117,7 +131,11 @@ if Backbone? data: title: newTitle body: newBody - tags: newTags + + # TODO tags + # Until we decide what to do w/ tags, removing them. + #tags: newTags + error: DiscussionUtil.formErrorHandler(@$(".edit-post-form-errors")) success: (response, textStatus) => # TODO: Move this out of the callback, this makes it feel sluggish @@ -134,7 +152,10 @@ if Backbone? @createShowView() @renderShowView() - @renderTags() + + # TODO tags + # Until we decide what to do w/ tags, removing them. + #@renderTags() createEditView: () -> diff --git a/lms/static/coffee/src/discussion/views/discussion_thread_view_inline.coffee b/lms/static/coffee/src/discussion/views/discussion_thread_view_inline.coffee index a11bfce926..ede3ea65ee 100644 --- a/lms/static/coffee/src/discussion/views/discussion_thread_view_inline.coffee +++ b/lms/static/coffee/src/discussion/views/discussion_thread_view_inline.coffee @@ -28,7 +28,10 @@ if Backbone? @delegateEvents() @renderShowView() @renderAttrs() - @renderTags() #TODO: Decide if we want to show tags on inline threads + + # TODO tags commenting out til we decide what to do with tags + #@renderTags() + @$("span.timeago").timeago() @$el.find('.post-extended-content').hide() if @expanded diff --git a/lms/templates/discussion/_underscore_templates.html b/lms/templates/discussion/_underscore_templates.html index 24780cb4dd..e3b733e74e 100644 --- a/lms/templates/discussion/_underscore_templates.html +++ b/lms/templates/discussion/_underscore_templates.html @@ -63,9 +63,11 @@
${"<%- body %>"}
-
- "}"> -
+ ## TODO tags + ## Until we decide what to do with tags, commenting them out. + ##
+ ## "}"> + ##
Cancel
diff --git a/lms/templates/discussion/index.html b/lms/templates/discussion/index.html index 70e224c78c..fc96640a35 100644 --- a/lms/templates/discussion/index.html +++ b/lms/templates/discussion/index.html @@ -28,7 +28,7 @@
-

${course.title} discussions

+

${course.title} Discussion