Sha256: b221ec4b0300ee53ef96021f38ae1a63bf6a2b35ccee90991e4bcef12d13c36c
Contents?: true
Size: 1.11 KB
Versions: 60
Compression:
Stored size: 1.11 KB
Contents
I"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.Admin.Users.Show = (function(superClass) { extend(Show, superClass); function Show(opts) { if (opts == null) { opts = {}; } Show.__super__.constructor.call(this, opts); this.user = null; } Show.prototype.render = function(user) { this.user = user; $("#user_email").text(this.user.email); $("#user_username").text(this.user.username); $("#user_confirmed").text(this.user.confirmed ? "Yes" : "No"); return this._updateEditLink(); }; Show.prototype._updateEditLink = function() { var href; href = $("#edit_link").attr("href"); return $("#edit_link").attr("href", href.replace("/0/", "/" + this.user.id + "/")); }; return Show; })(App.Views.Base); }).call(this); :ET
Version data entries
60 entries across 27 versions & 1 rubygems