Follow-up to #16804: Bug/Prerequisite for the new pagetree: refresh pageTree with...
authorSteffen Kamper <info@sk-typo3.de>
Wed, 22 Dec 2010 01:09:04 +0000 (01:09 +0000)
committerSteffen Kamper <info@sk-typo3.de>
Wed, 22 Dec 2010 01:09:04 +0000 (01:09 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@9873 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_befunc.php
typo3/js/backend.js
typo3/js/modulemenu.js

index 2587a02..e35c023 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -27,6 +27,7 @@
 
 2010-12-19  Steffen Gebert  <steffen@steffen-gebert.de>
 
+       * Follow-up to #16804: Bug/Prerequisite for the new pagetree: refresh pageTree with updateSignal, use new shortcuts in JS (Thanks to Stefan Galinski)
        * Follow-up to #16779: t3lib_cache_backend_RedisBackendTest causes t3lib_db_PreparedStatementTest tests to fail (Thanks to Oliver Klee)
        * Fixed bug #16777: Test failure in t3lib_extmgmTest if tests are located in typo3_src/tests/ instead of tests/ (Thanks to Oliver Klee)
        * Fixed bug #16790: Typo in topbar CSS
index 04203c8..5edf32a 100644 (file)
@@ -3130,7 +3130,13 @@ final class t3lib_BEfunc {
                                t3lib_div::callUserFunction($updateSignals[$set], $params, $ref);
                                $signals[] = $params['JScode'];
                        } else {
-                               if ($set == 'updatePageTree' || $set == 'updateFolderTree') {
+                               if ($set === 'updatePageTree') {
+                                       $signals[] = '
+                                               if (top && top.TYPO3.Backend.NavigationContainer.PageTree) {
+                                                       top.TYPO3.Backend.NavigationContainer.PageTree.refreshTree();
+                                               }
+                                       ';
+                               } else if ($set == 'updateFolderTree') {
                                        $signals[] = '
                                        if (top && top.TYPO3.Backend.NavigationIframe) {
                                                top.TYPO3.Backend.NavigationIframe.refresh();
index 8c391c1..73dc33b 100644 (file)
@@ -37,8 +37,8 @@ function jump(url, modName, mainModName) {
                // clear information about which entry in nav. tree that might have been highlighted.
        top.fsMod.navFrameHighlightedID = [];
 
-       if (top.TYPO3.Backend.NavigationIframe.isVisible()) {
-               top.TYPO3.Backend.NavigationIframe.refresh();
+       if (top.TYPO3.Backend.NavigationContainer.PageTree) {
+               top.TYPO3.Backend.NavigationContainer.PageTree.refreshTree();
        }
 
        top.nextLoadModuleUrl = url;
index 65bf78a..9775879 100644 (file)
@@ -338,13 +338,13 @@ Ext.onReady(function() {
 
                // keep backward compatibility
        top.list = TYPO3.Backend.ContentContainer;
-       top.nav = TYPO3.Backend.NavigationIframe;
+       top.nav = TYPO3.Backend.NavigationContainer.PageTree;
        top.list_frame = top.list.getIframe();
-       top.nav_frame = TYPO3.Backend.NavigationIframe.getIframe();
+       top.nav_frame = TYPO3.Backend.NavigationContainer.PageTree;
 
        top.TYPO3ModuleMenu = TYPO3.ModuleMenu.App;
        top.content = {
-               nav_frame: TYPO3.Backend.NavigationIframe.getIframe(),
+               nav_frame: TYPO3.Backend.NavigationContainer.PageTree,
                list_frame: TYPO3.Backend.ContentContainer.getIframe(),
                location: TYPO3.Backend.ContentContainer.getIframe().location,
                document: TYPO3.Backend.ContentContainer.getIframe()