(feature/cleanup) Refactored clickmenu to speed up the BE
[Packages/TYPO3.CMS.git] / typo3 / alt_db_navframe.php
index ea1d5cd..86a9480 100755 (executable)
@@ -108,8 +108,8 @@ class SC_alt_db_navframe {
                $this->pagetree->ext_IconMode = $BE_USER->getTSConfigVal('options.pageTree.disableIconLinkToContextmenu');
                $this->pagetree->ext_showPageId = $BE_USER->getTSConfigVal('options.pageTree.showPageIdWithTitle');
                $this->pagetree->ext_showNavTitle = $BE_USER->getTSConfigVal('options.pageTree.showNavTitle');
-               $this->pagetree->ext_dontSeparateNotinmenuPages = $BE_USER->getTSConfigVal('options.pageTree.dontSeparateNotinmenuPages');
-               $this->pagetree->ext_dontAlphasortNotinmenuPages = $BE_USER->getTSConfigVal('options.pageTree.dontAlphasortNotinmenuPages');
+               $this->pagetree->ext_separateNotinmenuPages = $BE_USER->getTSConfigVal('options.pageTree.separateNotinmenuPages');
+               $this->pagetree->ext_alphasortNotinmenuPages = $BE_USER->getTSConfigVal('options.pageTree.alphasortNotinmenuPages');
                $this->pagetree->thisScript = 'alt_db_navframe.php';
                $this->pagetree->addField('alias');
                $this->pagetree->addField('shortcut');
@@ -140,9 +140,8 @@ class SC_alt_db_navframe {
                        $this->doc->docType = 'xhtml_trans';
 
                                // Adding javascript code for AJAX (prototype), drag&drop and the pagetree
-                       $this->doc->JScode  = '
-                       <script type="text/javascript" src="'.$this->backPath.'contrib/prototype/prototype.js"></script>
-                       <script type="text/javascript" src="'.$this->backPath.'tree.js"></script>'."\n";
+                       $this->doc->loadJavascriptLib('contrib/prototype/prototype.js');
+                       $this->doc->loadJavascriptLib('tree.js');
 
                        $this->doc->JScode .= $this->doc->wrapScriptTags(
                        ($this->currentSubScript?'top.currentSubScript=unescape("'.rawurlencode($this->currentSubScript).'");':'').'
@@ -170,11 +169,8 @@ class SC_alt_db_navframe {
                        ');
 
                                // Click menu code is added:
-                       $CMparts=$this->doc->getContextMenuCode();
-                       $this->doc->bodyTagAdditions = $CMparts[1];
+                       $this->doc->getContextMenuCode();
                        $this->doc->bodyTagId = 'bodyTag';
-                       $this->doc->JScode.= $CMparts[0];
-                       $this->doc->postCode.= $CMparts[2];
                }
        }
 
@@ -357,4 +353,4 @@ $SOBE->init();
 $SOBE->main();
 $SOBE->printContent();
 
-?>
\ No newline at end of file
+?>