Sha256: e3d4f7f938de106f2bd3f31b8fef5e88d2958600ec7cb9273afd2620c69aa1e8
Contents?: true
Size: 1.82 KB
Versions: 60
Compression:
Stored size: 1.82 KB
Contents
I"<(function() { var extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; App.Views.Main.Users.UserRegistrationForm = (function(superClass) { extend(UserRegistrationForm, superClass); function UserRegistrationForm(opts) { if (opts == null) { opts = {}; } UserRegistrationForm.__super__.constructor.call(this, opts); } UserRegistrationForm.prototype.render = function() { var form; form = new App.UI.Form({ "for": new App.Models.User, delegator: this, callbackSuccess: '_created' }); return form.render(); }; UserRegistrationForm.prototype.receivedSignal = function(signal, data) { switch (signal) { case 'confirming': return this._confirming(); case 'confirmed': return this._confirmed(); } }; UserRegistrationForm.prototype._created = function(data) { var flash; 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 }); return flash.render(); }; UserRegistrationForm.prototype._confirming = function() { return $('#verification_info').text($('#verification_progress').text()); }; UserRegistrationForm.prototype._confirmed = function() { return window.location.href = '/user/sessions/new?event=confirmed'; }; return UserRegistrationForm; })(App.Views.Base); }).call(this); :ET
Version data entries
60 entries across 27 versions & 1 rubygems