Sha256: 53a038c074a453dcaf62eb20ce61447d4ffcc01fae3e0e33614e2fd0a490f561
Contents?: true
Size: 803 Bytes
Versions: 31
Compression:
Stored size: 803 Bytes
Contents
class App.Views.Main.Users.UserRegistrationForm extends App.Views.Base constructor: (opts = {}) -> super opts render: -> form = new App.UI.Form for: new App.Models.User, delegator: this, callbackSuccess: '_created' form.render() receivedSignal: (signal, data) -> switch signal when 'confirming' then this._confirming() when 'confirmed' then this._confirmed() _created: (data) -> this.connectWith new App.Models.User(id: data.id) $('form').add('#sign_in_paragraph').hide 'slow' $('#verification_info').show 'slow' flash = new App.Views.Shared.Flash notice: data.notice flash.render() _confirming: -> $('#verification_info').text $('#verification_progress').text() _confirmed: -> window.location.href = '/user/sessions/new?event=confirmed'
Version data entries
31 entries across 27 versions & 1 rubygems