hedera-web/forms/admin/users/users.js

23 lines
474 B
JavaScript

Hedera.Users = new Class({
Extends: Hedera.Form
,rendererFunc: function(scope, form) {
var isEnabled = form.$.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.setAll({form: 'ecomerce/orders'});
}
});