0
1
Fork 0
hedera-web-mindshore/forms/admin/users/users.js

23 lines
474 B
JavaScript
Raw Normal View History

2022-05-05 13:56:17 +00:00
Hedera.Users = new Class({
2016-09-26 09:28:47 +00:00
Extends: Hedera.Form
2022-05-05 13:56:17 +00:00
,rendererFunc: function(scope, form) {
2022-05-28 15:49:46 +00:00
var isEnabled = form.$.active
2022-05-28 01:18:06 +00:00
scope.$.disabled.style.display = isEnabled ?
2017-11-27 15:27:13 +00:00
'none' : 'block';
2022-05-28 01:18:06 +00:00
scope.$.impersonate.node.style.display = isEnabled ?
2017-11-27 15:27:13 +00:00
'block' : 'none';
}
2017-11-27 13:53:38 +00:00
2022-05-24 21:11:12 +00:00
,onChangeUserClick: function(userName) {
this.gui.supplantUser(userName,
2022-05-05 13:56:17 +00:00
this.onUserSupplant.bind(this));
}
2022-05-05 13:56:17 +00:00
,onUserSupplant: function() {
2022-05-30 01:30:33 +00:00
this.hash.setAll({form: 'ecomerce/orders'});
}
});