Sha256: 69233ca99b8dbb39746d2288685fee9a51bff889ceb2ef7dfdac543fba181b80
Contents?: true
Size: 794 Bytes
Versions: 5
Compression:
Stored size: 794 Bytes
Contents
document.addEventListener 'turbolinks:load', -> $ -> console.log 'привет, это вкусный кофе со страницы восстановления пароля.)' password_default = -> $('#password-notice .error-notice').removeClass 'active' $('#sign-resurrection-button').click -> password_default() $.ajax( method: 'POST' url: '/resurrection_password_update' data: password: $('input[name="field-password"]').val() resurrection_code: $('input[name="resurrection-code"]').val() ).done (response) -> switch response.state when 'bad_password' then $('#password-notice .error-notice').addClass 'active' when 'login' then window.location.href = response.url
Version data entries
5 entries across 5 versions & 1 rubygems