0
1
Fork 0
hedera-web-mindshore/forms/account/address/address.js

21 lines
496 B
JavaScript

Hedera.Address = new Class({
Extends: Hedera.Form,
activate: function() {
this.$.model.setInfo('a', 'myAddress', 'hedera', ['id'], 'id');
this.$.model.setDefault('clientFk', 'a',
new Sql.Function({schema: 'account', name: 'myUser_getId'}));
},
onStatusChange: function() {
if (this.$.iter.ready && this.hash.$.address == 0)
this.$.iter.insertRow();
},
onOperationsDone: function() {
Htk.Toast.showMessage(_('AddressChangedSuccessfully'));
window.history.back()
}
});