diff --git a/typo3/close.html b/typo3/close.html deleted file mode 100644 index eb6ab3f357495f7dbee4b573755cab298ebea35b..0000000000000000000000000000000000000000 --- a/typo3/close.html +++ /dev/null @@ -1,23 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<?xml-stylesheet href="#internalStyle" type="text/css"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> -<html> -<head> - - <!-- Close script, used in particular by FormEngine to close the current edit window --> - - <!-- TYPO3 Script ID: typo3/close.html --> - <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> - <title>Close</title> - <script type="text/javascript"> - /*<![CDATA[*/ - self.close(); - window.opener.location.reload(true); - /*]]>*/ - </script> -</head> -<body> -</body> -</html> diff --git a/typo3/sysext/backend/Classes/Controller/EditDocumentController.php b/typo3/sysext/backend/Classes/Controller/EditDocumentController.php index c8adb81caa955bca2445a45a88462cbcf379bd88..ac0f7bef6dc68198fd3b688d11e1949425361f0b 100644 --- a/typo3/sysext/backend/Classes/Controller/EditDocumentController.php +++ b/typo3/sysext/backend/Classes/Controller/EditDocumentController.php @@ -1255,7 +1255,7 @@ class EditDocumentController { * @return string */ public function shortCutLink() { - if ($this->returnUrl == 'close.html' || !$this->getBackendUser()->mayMakeShortcut()) { + if ($this->returnUrl === 'sysext/backend/Resources/Private/Templates/Close.html' || !$this->getBackendUser()->mayMakeShortcut()) { return ''; } return $this->doc->makeShortcutIcon('returnUrl,edit,defVals,overrideVals,columnsOnly,returnNewPageId,editRegularContentFromId,noView', '', $this->MCONF['name'], 1); @@ -1267,10 +1267,10 @@ class EditDocumentController { * @return string */ public function openInNewWindowLink() { - if ($this->returnUrl == 'close.html') { + if ($this->returnUrl === 'sysext/backend/Resources/Private/Templates/Close.html') { return ''; } - $aOnClick = 'vHWin=window.open(' . GeneralUtility::quoteJSvalue(GeneralUtility::linkThisScript(array('returnUrl' => 'close.html'))) . ',' . GeneralUtility::quoteJSvalue(md5($this->R_URI)) . ',\'width=670,height=500,status=0,menubar=0,scrollbars=1,resizable=1\');vHWin.focus();return false;'; + $aOnClick = 'vHWin=window.open(' . GeneralUtility::quoteJSvalue(GeneralUtility::linkThisScript(array('returnUrl' => 'sysext/backend/Resources/Private/Templates/Close.html'))) . ',' . GeneralUtility::quoteJSvalue(md5($this->R_URI)) . ',\'width=670,height=500,status=0,menubar=0,scrollbars=1,resizable=1\');vHWin.focus();return false;'; return '<a href="#" onclick="' . htmlspecialchars($aOnClick) . '" title="' . $this->getLanguageService()->sL('LLL:EXT:lang/locallang_core.xlf:labels.openInNewWindow', TRUE) . '">' . IconUtility::getSpriteIcon('actions-window-open') . '</a>'; } diff --git a/typo3/sysext/backend/Resources/Private/Templates/Close.html b/typo3/sysext/backend/Resources/Private/Templates/Close.html new file mode 100644 index 0000000000000000000000000000000000000000..e5fbc77bef0b6706b2845d917b681e84c0f38bc7 --- /dev/null +++ b/typo3/sysext/backend/Resources/Private/Templates/Close.html @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<html> + <head> + <!-- Close script, used in particular by FormEngine to close the current edit window --> + <!-- TYPO3 Script ID: typo3/sysext/backend/Resources/Private/Templates/close.html --> + <meta charset="utf-8" /> + <title>Close</title> + <script type="text/javascript"> + self.close(); + window.opener.location.reload(true); + </script> + </head> + <body> + </body> +</html> \ No newline at end of file diff --git a/typo3/sysext/feedit/Classes/FrontendEditPanel.php b/typo3/sysext/feedit/Classes/FrontendEditPanel.php index c44fbc5f94b79599a4b8ef76fceebc2622ba2d87..5ec4eee9d50980f1421175c7c49525f8b0309e51 100644 --- a/typo3/sysext/feedit/Classes/FrontendEditPanel.php +++ b/typo3/sysext/feedit/Classes/FrontendEditPanel.php @@ -285,7 +285,7 @@ class FrontendEditPanel { * @see editPanelLinkWrap() */ protected function editPanelLinkWrap_doWrap($string, $url) { - $onclick = 'vHWin=window.open(' . GeneralUtility::quoteJSvalue($url . '&returnUrl=close.html') . ',\'FEquickEditWindow\',\'width=690,height=500,status=0,menubar=0,scrollbars=1,resizable=1\');vHWin.focus();return false;'; + $onclick = 'vHWin=window.open(' . GeneralUtility::quoteJSvalue($url . '&returnUrl=sysext/backend/Resources/Private/Templates/Close.html') . ',\'FEquickEditWindow\',\'width=690,height=500,status=0,menubar=0,scrollbars=1,resizable=1\');vHWin.focus();return false;'; return '<a href="#" onclick="' . htmlspecialchars($onclick) . '" class="frontEndEditIconLinks">' . $string . '</a>'; }