mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
21180f52bd
commit
71736d4ea8
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user