2015-01-23 13:09:30 +00:00
|
|
|
|
2016-09-26 09:28:47 +00:00
|
|
|
Hedera.Users = new Class
|
2015-01-23 13:09:30 +00:00
|
|
|
({
|
2016-09-26 09:28:47 +00:00
|
|
|
Extends: Hedera.Form
|
2016-12-23 08:57:49 +00:00
|
|
|
|
|
|
|
,repeaterFunc: function (res, form)
|
2015-01-23 13:09:30 +00:00
|
|
|
{
|
2016-12-23 08:57:49 +00:00
|
|
|
res.$('link').href = this.hash.make ({
|
|
|
|
'form': 'admin/access-log',
|
|
|
|
'user': form.get ('id')
|
2015-01-23 13:09:30 +00:00
|
|
|
});
|
|
|
|
}
|
2015-11-30 16:46:24 +00:00
|
|
|
|
|
|
|
,onChangeUserClick: function (button, form)
|
|
|
|
{
|
2016-10-04 15:27:49 +00:00
|
|
|
this.gui.supplantUser (form.get ('name'),
|
2015-11-30 16:46:24 +00:00
|
|
|
this.onUserSupplant.bind (this));
|
|
|
|
}
|
2015-01-23 13:09:30 +00:00
|
|
|
|
2015-11-30 16:46:24 +00:00
|
|
|
,onUserSupplant: function (userName)
|
2015-01-23 13:09:30 +00:00
|
|
|
{
|
2015-02-01 03:21:54 +00:00
|
|
|
this.hash.set ({'form': 'ecomerce/orders'});
|
2015-01-23 13:09:30 +00:00
|
|
|
}
|
|
|
|
});
|
|
|
|
|