From 1efa1b3169d0bff136e32048b5d15d079badadec Mon Sep 17 00:00:00 2001 From: Waqas Khalid Date: Tue, 16 Sep 2014 17:24:20 +0500 Subject: [PATCH] Don't allow voting while the thread is closed When someone closes thread there is still option to add vote which cause error when click on add vote button. User shouldn't be able to add vote while the thread is closed. TNL-152 --- .../discussion/discussion_spec_helper.coffee | 5 ++++- .../view/discussion_thread_view_spec.coffee | 21 ++++++++++++++++++- .../view/discussion_view_spec_helper.coffee | 2 +- .../views/discussion_content_view.coffee | 14 ++++++------- .../views/discussion_thread_view.coffee | 4 ++++ .../discussion/_underscore_templates.html | 5 ++++- 6 files changed, 40 insertions(+), 11 deletions(-) diff --git a/common/static/coffee/spec/discussion/discussion_spec_helper.coffee b/common/static/coffee/spec/discussion/discussion_spec_helper.coffee index d1a3de530a..5d693794c9 100644 --- a/common/static/coffee/spec/discussion/discussion_spec_helper.coffee +++ b/common/static/coffee/spec/discussion/discussion_spec_helper.coffee @@ -470,12 +470,15 @@ browser and pasting the output. When that file changes, this one should be rege