mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Opening the file link in File->getCMSFields() in a new window to avoid being stuck in UploadField "inline edit" views without a back button
This commit is contained in:
parent
db5ac15bb1
commit
4499edc0ca
@ -258,7 +258,7 @@ class File extends DataObject {
|
||||
function getCMSFields() {
|
||||
$urlLink = "<div class='field readonly'>";
|
||||
$urlLink .= "<label class='left'>"._t('AssetTableField.URL','URL')."</label>";
|
||||
$urlLink .= "<span class='readonly'><a href='{$this->Link()}'>{$this->RelativeLink()}</a></span>";
|
||||
$urlLink .= "<span class='readonly'><a href='{$this->Link()}' target='_blank'>{$this->RelativeLink()}</a></span>";
|
||||
$urlLink .= "</div>";
|
||||
|
||||
return new FieldList(
|
||||
|
Loading…
Reference in New Issue
Block a user