       @newPostForm.slideUp(300)
 
     toggleDiscussion: (event) ->
-      if @toggleDiscussionBtn.find('.button-text').text()=='Showing in Public View'
+      if @toggleDiscussionBtn.find('.button-text').text()=='Hidden from Public View'
         @toggleDiscussionBtn.removeClass('shown')
         @showed = false
       else

      discussionId = @$el.data("discussion-id")
      if @$el.data("discussion-visibility")
        @showed=true
        @toggleDiscussionBtn.find('.button-text').html("Showing in Public View")
      else
        @showed=false
        @toggleDiscussionBtn.find('.button-text').html("Hidden from Public View")
      url = DiscussionUtil.urlFor('retrieve_discussion', discussionId) + "?page=#{@page}"
      DiscussionUtil.safeAjax
        $elem: $elem

      else
        @newPostForm.show()
      @toggleDiscussionBtn.addClass('shown')
      @toggleDiscussionBtn.find('.button-text').html("Hidden from Public View")
      @$("section.discussion").slideDown()

    hideNewPost: (event) ->
