
Hedera.News = new Class
({
	Extends: Hedera.Form

	,onDeleteClick: function (button, form, event)
	{
		if (confirm (_('ReallyDelete')))
			form.deleteRow ();
	}

	,repeaterFunc: function (res, form)
	{
		res.$.link.href = this.hash.make ({
			form: 'news/new',
			new: form.$.id
		});
	}
	
	,onAddClick: function ()
	{
		this.hash.setAll ({
			form: 'news/new',
			new: 0
		});
	}
});

