Skip to content

Commit

Permalink
Merge pull request #55 from jsirish/enhancement/bulkUploader
Browse files Browse the repository at this point in the history
FlexSlider - GridFieldBulkUpload
  • Loading branch information
jsirish committed Apr 15, 2016
2 parents b435f20 + f30a1cc commit 2b3f9c8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions code/FlexSlider.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ public function updateCMSFields(FieldList $fields)
if (class_exists('GridFieldSortableRows')) {
$config->addComponent(new GridFieldSortableRows('SortOrder'));
}
if (class_exists('GridFieldBulkUpload')) {
$config->addComponent(new GridFieldBulkUpload());
$config->addComponent(new GridFieldBulkManager());
}
$config->removeComponentsByType('GridFieldAddExistingAutocompleter');
$config->removeComponentsByType('GridFieldDeleteAction');
$config->addComponent(new GridFieldDeleteAction(false));
Expand Down

0 comments on commit 2b3f9c8

Please sign in to comment.