hedera-web/forms/account/address/address.js

29 lines
643 B
JavaScript
Raw Normal View History

2018-05-16 15:21:15 +00:00
Hedera.Address = new Class({
Extends: Hedera.Form,
2018-05-16 15:21:15 +00:00
activate: function() {
this.$('model').setInfo('a', 'myAddress', 'hedera', ['id'], 'id');
this.$('model').setDefault('clientFk', 'a',
new Sql.Function({schema: 'account', name: 'myUser_getId'}));
2018-05-16 15:21:15 +00:00
},
2022-05-24 21:11:12 +00:00
onStatusChange: function() {
if (this.$('iter').ready && this.$('address').value == 0)
this.$('iter').insertRow();
2018-05-16 15:21:15 +00:00
},
2018-05-16 15:21:15 +00:00
onOperationsDone: function() {
Htk.Toast.showMessage(_('AddressChangedSuccessfully'));
this.onReturnClick();
},
2018-05-16 15:21:15 +00:00
onAcceptClick: function() {
this.$('iter').performOperations();
},
2018-05-16 15:21:15 +00:00
onReturnClick: function() {
window.history.back();
}
});