26 lines
417 B
JavaScript
26 lines
417 B
JavaScript
|
|
Hedera.Users = new Class
|
|
({
|
|
Extends: Hedera.Form
|
|
|
|
,onAccessLogClick: function (button, form)
|
|
{
|
|
this.hash.set ({
|
|
'form': 'admin/access-log'
|
|
,'user': form.get ('id')
|
|
});
|
|
}
|
|
|
|
,onChangeUserClick: function (button, form)
|
|
{
|
|
this.gui.supplantUser (form.get ('name'),
|
|
this.onUserSupplant.bind (this));
|
|
}
|
|
|
|
,onUserSupplant: function (userName)
|
|
{
|
|
this.hash.set ({'form': 'ecomerce/orders'});
|
|
}
|
|
});
|
|
|