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

36 lines
643 B
JavaScript
Raw Normal View History

2016-09-26 09:28:47 +00:00
Hedera.Address = new Class
({
2016-09-26 09:28:47 +00:00
Extends: Hedera.Form
,activate: function ()
{
2018-01-02 13:16:41 +00:00
this.$('model').setInfo ('a', 'myAddress', 'hedera', ['id'], 'id');
this.$('model').setDefault ('clientFk', 'a',
2016-10-17 06:52:14 +00:00
new Sql.Function ({schema: 'account', name: 'userGetId'}));
}
,onStatusChange: function (form)
{
2015-07-10 12:30:08 +00:00
if (form.ready && this.$('address').value == 0)
form.insertRow ();
}
,onOperationsDone: function ()
{
2015-08-17 18:02:14 +00:00
Htk.Toast.showMessage (_('AddressChangedSuccessfully'));
this.onReturnClick ();
}
,onAcceptClick: function ()
{
this.$('iter').performOperations ();
}
,onReturnClick: function ()
{
window.history.back();
}
});