0
1
Fork 0
hedera-web-mindshore/forms/news/news/news.js

31 lines
390 B
JavaScript

Hedera.News = new Class
({
Extends: Hedera.Form
,editNew: function (newId)
{
this.hash.set ({
'form': 'news/new'
,'new': newId
});
}
,onEditClick: function (button, form)
{
this.editNew (button.value);
}
,onDeleteClick: function (button, form)
{
if (confirm (_('ReallyDelete')))
form.deleteRow ();
}
,onAddClick: function ()
{
this.editNew (0);
}
});