             JSON.parse(responseText)['success_path']
           else
             xhr.getResponseHeader('X-Success-Path')
+
+          $(document).trigger('modal:close')
 
           if successPath
             window.location.href = successPath

            @submitting = false
            return false # to block disappearance

          beforeCancel: -> !@submitting
        }
      else
        { 

  $(this).on 'keyup', (e) ->
    if e.which is 13
      e.preventDefault()
      return false
