Sha256: d193ef16d7dd557eeead0e5d5a746d52e00939709981d6d605b6d3467c639537

Contents?: true

Size: 726 Bytes

Versions: 19

Compression:

Stored size: 726 Bytes

Contents

$ ->

  jBody = $ 'body'

  # fixes on sessions/new form, because devise don't return errors on fields
  jBody.on 'ajax:error', 'form.sessions-new', ->
    $(@).find(':input:visible').filter(-> not @value).closestEdge().setErrors()
    false

  # if devise form success, then open root path
  jBody.on 'ajax:success', 'form.user[data-remote="true"]', (event, data, textStatus, jqXHR) ->
    jForm = $ @
    if jForm.hasClass('users-new')
      getWidget('AccountPanel').showConfirmationInfo(jForm, data)
    else if jForm.hasClass('password-recovery')
      getWidget('AccountPanel').showConfirmationInfo(jForm, data)
    else unless jForm.hasClass('status')
      window.location = jqXHR.getResponseHeader('Location') or '/'

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
ultimate-base-0.5.0.0 app/assets/javascripts/ultimate/improves/devise.js.coffee
ultimate-base-0.4.1.0 app/assets/javascripts/ultimate/improves/devise.js.coffee
ultimate-base-0.4.0.1 app/assets/javascripts/ultimate/improves/devise.js.coffee
ultimate-base-0.4.0.0 app/assets/javascripts/ultimate/improves/devise.js.coffee
ultimate-base-0.3.5.0 app/assets/javascripts/ultimate/improves/devise.js.coffee
ultimate-base-0.3.4.0 app/assets/javascripts/ultimate/improves/devise.js.coffee
ultimate-base-0.3.3.0 app/assets/javascripts/ultimate/improves/devise.js.coffee
ultimate-base-0.3.2.1 app/assets/javascripts/ultimate/improves/devise.js.coffee
ultimate-base-0.3.2 app/assets/javascripts/ultimate/improves/devise.js.coffee
ultimate-base-0.3.1.1 app/assets/javascripts/ultimate/improves/devise.js.coffee
ultimate-base-0.3.1 app/assets/javascripts/ultimate/improves/devise.js.coffee
ultimate-base-0.3.0 app/assets/javascripts/ultimate/improves/devise.js.coffee
ultimate-base-0.3.0.alpha app/assets/javascripts/ultimate/improves/devise.js.coffee
ultimate-base-0.2.4 app/assets/javascripts/ultimate/devise.js.coffee
ultimate-base-0.2.3.2 app/assets/javascripts/ultimate/devise.js.coffee
ultimate-base-0.2.3 app/assets/javascripts/ultimate/devise.js.coffee
ultimate-base-0.2.2 app/assets/javascripts/ultimate/devise.js.coffee
ultimate-base-0.2.1 app/assets/javascripts/ultimate/devise.js.coffee
ultimate-base-0.2.0 app/assets/javascripts/ultimate/devise.js.coffee