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

43 lines
681 B
JavaScript
Raw Normal View History

2015-07-23 15:58:48 +00:00
2016-09-26 09:28:47 +00:00
Hedera.AddressList = new Class
2015-07-23 15:58:48 +00:00
({
2016-09-26 09:28:47 +00:00
Extends: Hedera.Form
2015-07-23 15:58:48 +00:00
,activate: function ()
{
2018-01-02 13:16:41 +00:00
this.$('user-model').setInfo ('c', 'myClient', 'hedera');
this.$('addresses').setInfo ('a', 'myAddress', 'hedera');
2015-07-23 15:58:48 +00:00
}
,onAddAddressClick: function ()
{
this.hash.set ({
2018-01-02 13:16:41 +00:00
form: 'account/address',
address: 0
2015-07-23 15:58:48 +00:00
});
}
,onReturnClick: function ()
{
window.history.back();
}
,onRemoveAddressClick: function (button, form)
{
if (confirm (_('AreYouSureDeleteAddress')))
{
2018-01-22 08:52:43 +00:00
form.set ('isActive', false);
2015-07-23 15:58:48 +00:00
form.refresh ();
}
}
,onEditAddressClick: function (button, form)
{
this.hash.set ({
2018-01-02 13:16:41 +00:00
form: 'account/address',
address: form.get ('id')
2015-07-23 15:58:48 +00:00
});
}
});