     $(selector, @el)
 
   reinitialize: (element) ->
+    @has_been_reset = false
     @wrapper=@$(@wrapper_sel)
     @coe = @$(@coe_sel)
 

      if response.success
        @status_container.after(response.html).remove()
        @status_container= $(@status_container_sel)

  get_last_response: () =>
    data = {}
    $.postWithPrefix "#{@ajax_url}/get_last_response", data, (response) =>
      if response.success
        console.log(response.response)

  message_post: (event)=>
    external_grader_message=$(event.target).parent().parent().parent()

        if response.hide_reset
          @reset_button.hide()

  get_last_response: () =>
    @submit_button.hide()
    @answer_area.attr("disabled", true)
    data = {}
    $.postWithPrefix "#{@ajax_url}/get_last_response", data, (response) =>
      if response.success && response.response != ""
        @answer_area.html(response.response)
        if response.state!='initial'
          @submit_button.hide()
          @answer_area.attr("disabled", true)
        if @has_been_reset
          @submit_button.show()
          @answer_area.attr("disabled", false)
          @gentle_alert "Here is your previous answer to this qu
                        estion."
        else if @allow_reset=="True"
          @reset_button.show()
          @gentle_alert "You may reset and answer this question again."
        else
          @gentle_alert "You have answered this question."
      else
        @submit_button.show()
        @answer_area.attr("disabled", false)
        @$(@oe_alert_sel).animate(opacity: 0, 700)

  show_status_current: () =>
    data = {}
