adding "delete" class to DeleteImageForm

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@48858 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2008-01-30 21:21:25 +00:00
parent 21180f52bd
commit 71736d4ea8

View File

@ -605,7 +605,7 @@ class Image_Uploader extends Controller {
_t('ImageUploader.DELETE', 'Delete %s', PR_MEDIUM, 'Delete file/image'),
$type
);
return new Form(
$form = new Form(
$this,
'DeleteImageForm',
new FieldSet(
@ -614,13 +614,16 @@ class Image_Uploader extends Controller {
new HiddenField("Field", null, $this->urlParams['Field'])
),
new FieldSet(
new ConfirmedFormAction(
$deleteAction = new ConfirmedFormAction(
"delete",
$title,
sprintf(_t('ImageUploader.REALLYDELETE', "Do you really want to remove this %s?"), $type)
)
)
);
$deleteAction->addExtraClass('delete');
return $form;
}
}