Follow-up to #17592: ExtDirect API calls are splitted in single requests and slows...
authorsteffenk <steffenk@709f56b5-9817-0410-a4d7-c38de5d9e867>
Mon, 21 Feb 2011 00:30:42 +0000 (00:30 +0000)
committersteffenk <steffenk@709f56b5-9817-0410-a4d7-c38de5d9e867>
Mon, 21 Feb 2011 00:30:42 +0000 (00:30 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_4-5@10510 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/backend.php
typo3/template.php

index 85de67e..56081ad 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-02-21  Steffen Kamper  <steffen@typo3.org>
+
+       * Follow-up to #17592: ExtDirect API calls are splitted in single requests and slows down page loading
+
 2011-02-20  Stanislas Rolland  <typo3@sjbr.ca>
 
        * Follow-up to issue #17677: htmlArea RTE: Classes configuration is loaded twice
index de3a5be..12d1054 100644 (file)
@@ -235,17 +235,6 @@ class TYPO3backend {
                }
 
 
-                       // TYPO3.Ajax.ExtDirec is used for BE toolbar items and may be later for general services
-               if (isset($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ExtDirect']) && is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ExtDirect'])) {
-                       foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ExtDirect'] as $key => $value) {
-                               if (strpos($key, 'TYPO3.Ajax.ExtDirect') !== FALSE) {
-                                       $this->pageRenderer->addJsFile('ajax.php?ajaxID=ExtDirect::getAPI&namespace=TYPO3.Ajax.ExtDirect&' . TYPO3_version, NULL, FALSE);
-                                       break;
-                               }
-                       }
-               }
-               $this->pageRenderer->addJsFile('ajax.php?ajaxID=ExtDirect::getAPI&namespace=TYPO3.BackendUserSettings&' . TYPO3_version, NULL, FALSE);
-
                $this->generateJavascript();
                $this->pageRenderer->addJsInlineCode('BackendInlineJavascript', $this->js);
 
index 5349e33..a488a9b 100644 (file)
@@ -821,11 +821,6 @@ class template {
                $this->docStyle();
 
           if ($this->extDirectStateProvider) {
-                       $this->pageRenderer->addJsFile(
-                               $this->backPath . 'ajax.php?ajaxID=ExtDirect::getAPI&namespace=TYPO3.ExtDirectStateProvider&' . TYPO3_version,
-                               NULL,
-                               FALSE
-                       );
                        $this->pageRenderer->addJsFile($this->backPath . '../t3lib/js/extjs/ExtDirect.StateProvider.js');
                }