From 9246d50a90f2f3f55f3f76ffb0de2edce5ca27d7 Mon Sep 17 00:00:00 2001 From: James Cocker Date: Fri, 31 Jan 2014 09:42:12 +0000 Subject: [PATCH] Removed Custom Tweak for GridFieldBulkEditingTools No longer required due to update. --- _config/galleries.yml | 3 +++ code/CustomGridFieldBulkEditingTools.php | 20 -------------------- code/PhotoGalleryPage.php | 1 - css/CustomGridFieldBulkEditingTools.css | 12 ------------ css/cms.css | 4 ++++ 5 files changed, 7 insertions(+), 33 deletions(-) create mode 100644 _config/galleries.yml delete mode 100644 code/CustomGridFieldBulkEditingTools.php delete mode 100644 css/CustomGridFieldBulkEditingTools.css create mode 100644 css/cms.css diff --git a/_config/galleries.yml b/_config/galleries.yml new file mode 100644 index 0000000..2af7d95 --- /dev/null +++ b/_config/galleries.yml @@ -0,0 +1,3 @@ +LeftAndMain: + extra_requirements_css: + - basic-galleries/css/cms.css \ No newline at end of file diff --git a/code/CustomGridFieldBulkEditingTools.php b/code/CustomGridFieldBulkEditingTools.php deleted file mode 100644 index aec6176..0000000 --- a/code/CustomGridFieldBulkEditingTools.php +++ /dev/null @@ -1,20 +0,0 @@ - "
\$DefineFragment(bulk-edit-tools)
" - ); - } -} \ No newline at end of file diff --git a/code/PhotoGalleryPage.php b/code/PhotoGalleryPage.php index 4ccf7ea..6e5fb4f 100644 --- a/code/PhotoGalleryPage.php +++ b/code/PhotoGalleryPage.php @@ -25,7 +25,6 @@ public function getCMSFields() { } $gridFieldConfig = GridFieldConfig_RecordEditor::create(); - $gridFieldConfig->addComponent(new CustomGridFieldBulkEditingTools()); $gridFieldConfig->addComponent(new GridFieldBulkImageUpload()); $gridFieldConfig->getComponentByType('GridFieldBulkImageUpload')->setConfig('folderName', "Managed/PhotoGalleries/".$this->ID."-".$this->URLSegment); diff --git a/css/CustomGridFieldBulkEditingTools.css b/css/CustomGridFieldBulkEditingTools.css deleted file mode 100644 index 2fc72eb..0000000 --- a/css/CustomGridFieldBulkEditingTools.css +++ /dev/null @@ -1,12 +0,0 @@ -div#bulkEditTools -{ - margin: 0; - text-align: right; - -} - -#bulkImageUploadGFButton { - font-size: 150% !important; - margin: 0 0 10px 0 !important; - float: left !important; -} \ No newline at end of file diff --git a/css/cms.css b/css/cms.css new file mode 100644 index 0000000..15e6111 --- /dev/null +++ b/css/cms.css @@ -0,0 +1,4 @@ +#bulkImageUploadGFButton { + margin-bottom: 10px !important; + font-size: 120% !important; +} \ No newline at end of file