rfe: Image Management (funded by Formation Design Systems)

This commit is contained in:
JT Smith 2006-09-07 01:05:34 +00:00
parent 5e7565d8df
commit 35f4f5c4fb
3 changed files with 14 additions and 1 deletions

View file

@ -306,7 +306,11 @@ sub www_richEditViewThumbnail {
$output .= '</div>';
$output .= '<script type="text/javascript">';
$output .= "//<![CDATA[\n";
$output .= "\nvar src = '".$image->getFileUrl."';\n";
if ( $session->config->get("richEditorsUseAssetUrls")) {
$output .= "\nvar src = '".$image->getUrl."';\n";
} else {
$output .= "\nvar src = '".$image->getFileUrl."';\n";
}
$output .= "if(src.length > 0) {
var manager=window.parent;
if(manager)