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