forked from verdnatura/hedera-web
23 lines
476 B
JavaScript
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'});
|
|
}
|
|
});
|
|
|