From 71736d4ea8947bcad638979928d6ce496640f51f Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Wed, 30 Jan 2008 21:21:25 +0000 Subject: [PATCH] adding "delete" class to DeleteImageForm git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@48858 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/model/Image.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/core/model/Image.php b/core/model/Image.php index d8a48b412..de190de05 100755 --- a/core/model/Image.php +++ b/core/model/Image.php @@ -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; } }