[TASK] BE-Modules not migrated to ExtJS4 need to trigger compat-Mode
authorSteffen Ritter <info@rs-websystems.de>
Tue, 20 Dec 2011 10:35:40 +0000 (11:35 +0100)
committerOliver Hader <oliver@typo3.org>
Tue, 20 Dec 2011 17:11:03 +0000 (18:11 +0100)
EM, Recycler and Workspaces are not migrated yet. Thus they are broken.
It's hard to work without the Extension Manager.

Use it within Recycler and EM.

Change-Id: I82ba17fe90c408435bf8370e832807c5ba79d6b3
Resolves: #32185
Releases: 4.7
Reviewed-on: http://review.typo3.org/7428
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
typo3/sysext/em/classes/class.tx_em_extensionmanager.php
typo3/sysext/em/classes/index.php
typo3/sysext/recycler/mod1/index.php

index b480557..ac929a6 100644 (file)
@@ -194,7 +194,9 @@ class tx_em_ExtensionManager {
 
                // Add JS
                $this->pageRenderer->addJsFile($this->parentObject->doc->backPath . '../t3lib/js/extjs/ux/flashmessages.js');
-               $this->pageRenderer->addJsFile($this->parentObject->doc->backPath . 'js/extjs/iframepanel.js');
+               // @todo Migrate to Ext JS 4 as well
+               // $this->pageRenderer->addJsFile($this->parentObject->doc->backPath . 'js/extjs/iframepanel.js');
+               $this->pageRenderer->addJsFile($this->parentObject->doc->backPath . 'sysext/extjs3_compat/typo3_extjs/iframepanel.js');
                $this->pageRenderer->addJsFile($this->parentObject->doc->backPath . 'contrib/codemirror/js/codemirror.js');
 
                //Plugins
index 92fc52f..becc7bd 100644 (file)
@@ -542,6 +542,9 @@ class SC_mod_tools_em_index extends t3lib_SCbase {
                        // Build the <body> for the module
                        $this->content = $this->doc->moduleBody($this->pageinfo, $docHeaderButtons, $markers);
                }
+
+               Tx_extjs3compat_Loader::loadExtJS3();
+
                        // Renders the module page
                $this->content = $this->doc->render(
                        'Extension Manager',
index 85b5cfa..89cf530 100644 (file)
@@ -148,6 +148,7 @@ class  tx_recycler_module1 extends t3lib_SCbase {
                        // Load Ext JS:
                $this->pageRenderer->loadExtJS();
                $this->pageRenderer->enableExtJSQuickTips();
+               Tx_extjs3compat_Loader::loadExtJS3();
 
                        // Integrate dynamic JavaScript such as configuration or lables:
                $this->pageRenderer->addInlineSettingArray(