Actions
Bug #20022
closedold/classic BE --> top.rawurlencodeAndRemoveSiteUrl is not a function
Start date:
2009-02-16
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.2
PHP Version:
5.1
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
If running the old Backend, you are not able to select the modules from the WEB Category (WEB->Page for example).
If you click on "Page" it is producing a JavaScript error Message:
"top.rawurlencodeAndRemoveSiteUrl is not a function"
Solution:
I figured out, the function is missing in the old BE javascript code.
If I add the code to the alt_main.php file it is working again.
############
$this->mainJScode='
.....
##########
/**
* Function to similar to PHPs rawurlencode() which removes TYPO3_SITE_URL;
*/
function rawurlencodeAndRemoveSiteUrl(str) { //
var siteUrl = "' . t3lib_div::getIndpEnv('TYPO3_SITE_URL') . '";
return rawurlencode(str_replace(siteUrl, \'\', str));
}
.....
(issue imported from #M10445)
Actions