From 0e93bcec538f82d421da708d1901622559e7c392 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sat, 21 Nov 2009 02:33:14 +0000 Subject: [PATCH] MINOR Moved 'delete files' button from Folder->getCMSFields() to AssetTableField git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@92559 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- filesystem/Folder.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/filesystem/Folder.php b/filesystem/Folder.php index ae8b1c346..1d987511d 100755 --- a/filesystem/Folder.php +++ b/filesystem/Folder.php @@ -335,12 +335,6 @@ class Folder extends File { $fileList->setPopupCaption(_t('Folder.VIEWEDITASSET', "View/Edit Asset")); $nameField = ($this->ID && $this->ID != "root") ? new TextField("Name", _t('Folder.TITLE')) : new HiddenField("Name"); - if( $this->canEdit() ) { - $deleteButton = new InlineFormAction('deletemarked',_t('Folder.DELSELECTED','Delete selected files'), 'delete'); - $deleteButton->includeDefaultJS(false); - } else { - $deleteButton = new HiddenField('deletemarked'); - } $fields = new FieldSet( new HiddenField("Title"), @@ -348,8 +342,6 @@ class Folder extends File { new Tab("Files", _t('Folder.FILESTAB', "Files"), $nameField, $fileList, - $deleteButton, - new HiddenField("FileIDs"), new HiddenField("DestFolderID") ), new Tab("Details", _t('Folder.DETAILSTAB', "Details"),