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

36 lines
651 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 ()
{
this.$('model').setInfo ('a', 'address_view', 'hedera', ['id'], 'id');
this.$('model').setDefault ('customer_id', 'a',
2016-10-17 06:52:14 +00:00
new Sql.Function ({schema: 'account', name: 'userGetId'}));
}
,onStatusChange: function (form)
{
2017-04-08 11:42:27 +00:00
if (form.ready && this.hash.get ('address') == 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();
}
});