Permalink
Browse files

MINOR Opening the file link in File->getCMSFields() in a new window t…

…o avoid being stuck in UploadField "inline edit" views without a back button
  • Loading branch information...
1 parent db5ac15 commit 4499edc0caf9bf3c757ba74afb3d2e61fa1b78b3 @chillu chillu committed Feb 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 filesystem/File.php
View
@@ -258,7 +258,7 @@ function canDelete($member = null) {
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(

0 comments on commit 4499edc

Please sign in to comment.