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

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


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