hedera-web/forms/news/news/news.js

29 lines
378 B
JavaScript

Hedera.News = new Class
({
Extends: Hedera.Form
,onDeleteClick: function (button)
{
if (confirm (_('ReallyDelete')))
button.lot.deleteRow ();
}
,repeaterFunc: function (res, lot)
{
res.$.link.href = this.hash.make ({
form: 'news/new',
new: lot.$.id
});
}
,onAddClick: function ()
{
this.hash.setAll ({
form: 'news/new',
new: 0
});
}
});