From af76401b23cbed5e97cd48b26c1a05fc52388e67 Mon Sep 17 00:00:00 2001 From: Awais Jibran Date: Tue, 7 Mar 2017 10:32:09 +0500 Subject: [PATCH] Discussion Selector fixes. TNL-6648 --- common/static/common/js/discussion/views/new_post_view.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/static/common/js/discussion/views/new_post_view.js b/common/static/common/js/discussion/views/new_post_view.js index b7eca47b23..1585889b1e 100644 --- a/common/static/common/js/discussion/views/new_post_view.js +++ b/common/static/common/js/discussion/views/new_post_view.js @@ -136,8 +136,8 @@ title = this.$('.js-post-title').val(); body = this.$('.js-post-body').find('.wmd-input').val(); group = this.$('.js-group-select option:selected').attr('value'); - anonymous = false || this.$('.js-anon').is(':checked'); - anonymousToPeers = false || this.$('.js-anon-peers').is(':checked'); + anonymous = false || this.$('input[name=anonymous]').is(':checked'); + anonymousToPeers = false || this.$('input[name=anonymous_to_peers]').is(':checked'); follow = false || this.$('input[name=follow]').is(':checked'); topicId = this.isTabMode() ? this.topicView.getCurrentTopicId() : this.topicId; url = DiscussionUtil.urlFor('create_thread', topicId);