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 15:54:40 +00:00
|
|
|
this.$.userModel.setInfo ('c', 'myClient', 'hedera');
|
|
|
|
this.$.addresses.setInfo ('a', 'myAddress', 'hedera');
|
2015-07-23 15:58:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
,onAddAddressClick: function ()
|
|
|
|
{
|
2017-04-05 14:06:07 +00:00
|
|
|
this.hash.setAll ({
|
2017-10-20 17:22:24 +00:00
|
|
|
form: 'account/address',
|
|
|
|
address: 0
|
2015-07-23 15:58:48 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
,onReturnClick: function ()
|
|
|
|
{
|
|
|
|
window.history.back();
|
|
|
|
}
|
|
|
|
|
2017-11-02 08:23:55 +00:00
|
|
|
,onRemoveAddressClick: function (button)
|
2015-07-23 15:58:48 +00:00
|
|
|
{
|
|
|
|
if (confirm (_('AreYouSureDeleteAddress')))
|
|
|
|
{
|
2017-11-02 08:23:55 +00:00
|
|
|
button.lot.set ('active', false);
|
|
|
|
button.lot.refresh ();
|
2015-07-23 15:58:48 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|