Bug #21901 ยป 13133.diff
typo3/file_edit.php (working copy) | ||
---|---|---|
$this->doc->setModuleTemplate('templates/file_edit.html');
|
||
$this->doc->backPath = $BACK_PATH;
|
||
$this->doc->JScode=$this->doc->wrapScriptTags('
|
||
function backToList() { //
|
||
top.goToModule("file_list");
|
||
function backToList(returnUrl) { //
|
||
if (returnUrl) {
|
||
document.location.href = returnUrl;
|
||
} else {
|
||
top.goToModule("file_list");
|
||
}
|
||
}
|
||
');
|
||
$this->doc->form='<form action="tce_file.php" method="post" name="editform">';
|
||
... | ... | |
// Cancel button
|
||
$theIcon = '<img'.t3lib_iconWorks::skinImg($this->backPath,'gfx/closedok.gif','width="18" height="16"').' title="'.$GLOBALS['LANG']->makeEntities($GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.cancel',1)).'" alt="" />';
|
||
$buttons['CANCEL'] = '<a href="#" onclick="backToList(); return false;">'.$theIcon.'</a>';
|
||
if ($this->returnUrl) {
|
||
$buttons['CANCEL'] = '<a href="#" onclick="backToList(\'' . htmlspecialchars($this->returnUrl) . '\'); return false;">' . $theIcon . '</a>';
|
||
} else {
|
||
$buttons['CANCEL'] = '<a href="#" onclick="backToList(); return false;">' . $theIcon . '</a>';
|
||
}
|
||
return $buttons;
|
||
}
|