# 6526: Update prototype and scriptacolous
[Packages/TYPO3.CMS.git] / typo3 / alt_main_new.php
index 9299b3c..fc3d7c7 100644 (file)
@@ -52,6 +52,8 @@
  *
  */
 
+die(); // Disabled until Kasper finishes this feature.
+
 require ('init.php');
 require ('template.php');
 require_once (PATH_t3lib.'class.t3lib_loadmodules.php');
@@ -74,8 +76,20 @@ class SC_alt_main {
                // Internal, dynamic:
        var $content;
        var $mainJScode;
-       var $loadModules;               // Load modules-object
-       var $alt_menuObj;               // Menu functions object.
+
+       /**
+        * Object for backend modules, load modules-object
+        *
+        * @var t3lib_loadModules
+        */
+       var $loadModules;
+
+       /**
+        * Menu functions object
+        *
+        * @var alt_menu_functions
+        */
+       var $alt_menuObj;
 
                // Internal, static:
        var $leftMenuFrameW = 130;
@@ -496,8 +510,8 @@ class SC_alt_main {
                //Add styles
                $this->content.='
                
-               <script src="prototype.js" language="JavaScript" type="text/javascript"></script>
-               <script src="scriptaculous/scriptaculous.js" language="JavaScript" type="text/javascript"></script>
+               <script src="contrib/prototype/prototype.js" language="JavaScript" type="text/javascript"></script>
+               <script src="contrib/scriptaculous/scriptaculous.js" language="JavaScript" type="text/javascript"></script>
                <script type="text/javascript" language="JavaScript">
                        function getElementContent(placeholderId, frequency, url) {
                                if (!url)       {
@@ -607,7 +621,7 @@ class SC_alt_main {
                                }
                                Element.setStyle(menyLayerObj,{top: \''.$this->topMenu.'px\'}); 
                                
-                               Effect.Appear(menyLayerObj,{duration: 0.4});
+                               Effect.Appear(menyLayerObj,{duration: 0.2});
                        }       
                        
                        function menuOpenSub(el)        {
@@ -618,7 +632,7 @@ class SC_alt_main {
                                        if (node.nodeType==1)   {       // This type seems to represent tags, not CDATA (which for some reason stops JS execution!)
                                                //debugObj(node);
                                                if (Element.hasClassName(node,"menulayer") && !Element.visible(node))   {
-                                                       Effect.Appear(node,{duration: 0.4});
+                                                       Effect.Appear(node,{duration: 0.2});
                                                        Element.setStyle(node,{left: ($(el).offsetLeft + Element.getDimensions(el).width - 5) +\'px\'}); 
                                                        
                                                        if (el.id && menuItemObjects[""+el.id]) {