
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);
	}
});

