mirror of
https://github.com/colymba/GridFieldBulkEditingTools.git
synced 2024-10-22 11:05:57 +02:00
FIX: Cancel button always available
Cancel button does not depends on crumbs
This commit is contained in:
parent
58e348eac1
commit
05d12695f6
@ -190,13 +190,13 @@ class GridFieldBulkImageUpload_Request extends RequestHandler {
|
|||||||
Save All & Finish
|
Save All & Finish
|
||||||
</a>";
|
</a>";
|
||||||
$actions->push(new LiteralField('finishbutton', $html));
|
$actions->push(new LiteralField('finishbutton', $html));
|
||||||
|
|
||||||
$html = "
|
|
||||||
<a id=\"bulkImageUploadUpdateCancelBtn\" class=\"cms-panel-link delete ss-ui-action-destructive ss-ui-button ui-button ui-widget ui-state-default ui-button-text-icon-primary\" data-icon=\"decline\" data-url=\"".$this->Link('cancel')."\" href=\"#\">
|
|
||||||
Cancel & Delete All
|
|
||||||
</a>";
|
|
||||||
$actions->push(new LiteralField('cancelbutton', $html));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$html = "
|
||||||
|
<a id=\"bulkImageUploadUpdateCancelBtn\" class=\"cms-panel-link delete ss-ui-action-destructive ss-ui-button ui-button ui-widget ui-state-default ui-button-text-icon-primary\" data-icon=\"decline\" data-url=\"".$this->Link('cancel')."\" href=\"#\">
|
||||||
|
Cancel & Delete All
|
||||||
|
</a>";
|
||||||
|
$actions->push(new LiteralField('cancelbutton', $html));
|
||||||
|
|
||||||
$uploadField = UploadField::create('BulkImageUploadField', '');
|
$uploadField = UploadField::create('BulkImageUploadField', '');
|
||||||
$uploadField->setConfig('previewMaxWidth', 40);
|
$uploadField->setConfig('previewMaxWidth', 40);
|
||||||
|
Loading…
Reference in New Issue
Block a user