         self = $(this)
         panel = do ->
           container = self.parents('.modal.create-comment')
-          container.modal(show: false)
+          container.modal('hide')
           $('[data-id="' + container.data('id') + '"]')
         return if panel.size() == 0
         container = panel.find('.comments-data')


    @hide: (e) ->
      e && e.preventDefault()
      $(this).parents('.modal.create-comment').modal(show: false)

    @handler:
      beforeSend: (e) ->

        comments.find('.comments-button.delete-comment').remove()
        form.append(comments)
      container.append(form)
      container.modal('show')
      container.bind('hidden', -> container.remove())
      container.find('textarea').focus()

