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

31 lines
551 B
JavaScript
Raw Normal View History

2016-09-26 09:28:47 +00:00
Hedera.Users = new Class
({
2016-09-26 09:28:47 +00:00
Extends: Hedera.Form
2015-12-02 17:26:58 +00:00
,onAccessLogClick: function (button, form)
{
this.hash.set ({
2015-02-01 03:21:54 +00:00
'form': 'admin/access-log'
2015-12-02 17:26:58 +00:00
,'user': form.get ('id')
});
}
,onChangeUserClick: function (button, form)
{
2017-11-27 13:53:38 +00:00
console.log (form.get ('active'));
if (form.get ('active'))
this.gui.supplantUser (form.get ('name'),
this.onUserSupplant.bind (this));
else
Htk.Toast.showError (_('The user account is disabled'));
}
,onUserSupplant: function (userName)
{
2015-02-01 03:21:54 +00:00
this.hash.set ({'form': 'ecomerce/orders'});
}
});