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:
Ingo Schommer 2012-02-03 01:11:26 +01:00
parent db5ac15bb1
commit 4499edc0ca

View File

@ -258,7 +258,7 @@ class File extends DataObject {
function getCMSFields() { function getCMSFields() {
$urlLink = "<div class='field readonly'>"; $urlLink = "<div class='field readonly'>";
$urlLink .= "<label class='left'>"._t('AssetTableField.URL','URL')."</label>"; $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>"; $urlLink .= "</div>";
return new FieldList( return new FieldList(