35 lines
546 B
JavaScript
35 lines
546 B
JavaScript
|
|
Hedera.AddressList = new Class
|
|
({
|
|
Extends: Hedera.Form
|
|
|
|
,activate: function ()
|
|
{
|
|
this.$.userModel.setInfo ('c', 'myClient', 'hedera');
|
|
this.$.addresses.setInfo ('a', 'myAddress', 'hedera');
|
|
}
|
|
|
|
,onAddAddressClick: function ()
|
|
{
|
|
this.hash.setAll ({
|
|
form: 'account/address',
|
|
address: 0
|
|
});
|
|
}
|
|
|
|
,onReturnClick: function ()
|
|
{
|
|
window.history.back();
|
|
}
|
|
|
|
,onRemoveAddressClick: function (button)
|
|
{
|
|
if (confirm (_('AreYouSureDeleteAddress')))
|
|
{
|
|
button.lot.set ('active', false);
|
|
button.lot.refresh ();
|
|
}
|
|
}
|
|
});
|
|
|