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

36 lines
639 B
JavaScript
Raw Normal View History

Vn.Address = new Class
({
Extends: Vn.Form
,activate: function ()
{
this.$('model').setInfo ('a', 'address_view', 'hedera', ['id'], 'id');
this.$('model').setDefault ('customer_id', 'a',
new Sql.Func ({schema: 'account', name: 'user_get_id'}));
}
,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();
}
});