Project

General

Profile

Bug #16871 » 0004814.patch

Administrator Admin, 2007-01-21 15:16

View differences:

typo3/alt_db_navframe.php (Arbeitskopie)
var $pagetree;
var $doc;
var $active_tempMountPoint = 0; // Temporary mount point (record), if any
var $backPath;
// Internal, static: GPvar:
var $currentSubScript;
......
$this->doc->docType = 'xhtml_trans';
// Setting backPath
$this->backPath = $BACK_PATH;
$this->doc->backPath = $BACK_PATH;
// Adding javascript code for AJAX (prototype), drag&drop and the pagetree
$this->doc->JScode = '
<script type="text/javascript" src="prototype.js"></script>
<script type="text/javascript" src="tree.js"></script>'."\n";
<script type="text/javascript" src="'.$this->backPath.'prototype.js"></script>
<script type="text/javascript" src="'.$this->backPath.'tree.js"></script>'."\n";
$this->doc->JScode .= $this->doc->wrapScriptTags(
($this->currentSubScript?'top.currentSubScript=unescape("'.rawurlencode($this->currentSubScript).'");':'').'
......
// output only the tree if this is an ajax call
if (t3lib_div::_GP('ajax')) {
$this->content = $tree;
$this->content = utf8_encode($tree);
return;
}
(2-2/3)