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

21 lines
496 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() {
2022-05-28 01:18:06 +00:00
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() {
2022-05-30 01:30:33 +00:00
if (this.$.iter.ready && this.hash.$.address == 0)
2022-05-28 01:18:06 +00:00
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'));
2022-05-30 01:30:33 +00:00
window.history.back()
}
});