Fixed bug #9008: template.php doesn't fully utilize the loadJavascriptLib function
authorBenni Mack <benni.mack@typo3.org>
Tue, 22 Jul 2008 08:21:45 +0000 (08:21 +0000)
committerBenni Mack <benni.mack@typo3.org>
Tue, 22 Jul 2008 08:21:45 +0000 (08:21 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@3902 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/template.php

index c01a8c0..44ffc5f 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 2008-07-22  Benjamin Mack  <benni@typo3.org>
 
+       * Fixed bug #9008: template.php doesn't fully utilize the loadJavascriptLib function
        * Fixed bug #9019: CSH in file_upload module is not in docheader 
 
 2008-07-21  Benjamin Mack  <benni@typo3.org>
index 5f69dfe..21a07f7 100755 (executable)
@@ -660,10 +660,9 @@ class template {
                        break;
                }
 
-               $tabJScode = '';
+                       // This loads the tabulator-in-textarea feature. It automatically modifies every textarea which is found.
                if (!$GLOBALS['BE_USER']->uc['disableTabInTextarea'])   {
-                               // This loads the tabulator-in-textarea feature. It automatically modifies every textarea which is found.
-                       $tabJScode = '<script src="'.$this->backPath.'tab.js" type="text/javascript"></script>';
+                       $this->loadJavascriptLib('tab.js');
                }
 
                        // Construct page header.
@@ -677,7 +676,6 @@ class template {
        '.$this->docStyle().'
        '.implode("\n", $this->JScodeLibArray).'
        '.$this->JScode.'
-       '.$tabJScode.'
        '.$this->wrapScriptTags(implode("\n", $this->JScodeArray)).'
        <!--###POSTJSMARKER###-->
 </head>