               $(this.el).find(".submit").hide()
               $(this.el).find(".close").addClass('alone')
 
-          beforeCancel: -> !@submitting
+          beforeCancel: ->
+            if !@submitting
+              $(document).trigger('modal:close')
+              return true
         }
 
       Modal = Backbone.Modal.extend(modalOptions)

            @submitting = false
            return false # to block disappearance

          beforeCancel: -> !@submitting
        }
      else
        { 

            JSON.parse(responseText)['success_path']
          else
            xhr.getResponseHeader('X-Success-Path')

          $(document).trigger('modal:close')

          if successPath
            window.location.href = successPath
