0
1
Fork 0
hedera-web-mindshore/forms/admin/users/users.js

23 lines
476 B
JavaScript

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'});
}
});