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

27 lines
485 B
JavaScript

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