Hedera.Users = new Class({ Extends: Hedera.Form ,rendererFunc: function(scope, form) { var isEnabled = form.get('active') scope.$.disabled.style.display = isEnabled ? 'none' : 'block'; scope.$.impersonate.node.style.display = isEnabled ? 'block' : 'none'; } ,onChangeUserClick: function(userName) { this.gui.supplantUser(userName, this.onUserSupplant.bind(this)); } ,onUserSupplant: function() { this.hash.set({form: 'ecomerce/orders'}); } });