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

43 lines
710 B
JavaScript

Hedera.AddressList = new Class
({
Extends: Hedera.Form
,activate: function ()
{
this.$('user-model').setInfo ('c', 'customer_view', 'hedera');
this.$('addresses').setInfo ('a', 'address_view', 'hedera');
}
,onAddAddressClick: function ()
{
this.hash.setAll ({
'form': 'account/address',
'address': 0
});
}
,onReturnClick: function ()
{
window.history.back();
}
,onRemoveAddressClick: function (button, form)
{
if (confirm (_('AreYouSureDeleteAddress')))
{
form.set ('active', false);
form.refresh ();
}
}
,repeaterFunc: function (res, form)
{
res.$('link').href = this.hash.make ({
'form': 'account/address',
'address': form.get ('id')
});
}
});