Third time's a charm?
authorMichael J. Rubinsky <mrubinsk@horde.org>
Thu, 30 Jul 2009 14:52:52 +0000 (10:52 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Thu, 30 Jul 2009 14:52:52 +0000 (10:52 -0400)
Move this before we *determine* if prototype is needed...not just
before we include it.

framework/Core/lib/Horde/Script/Files.php

index 704304a..a1cc7af 100644 (file)
@@ -182,6 +182,8 @@ class Horde_Script_Files
                 }
             }
 
+            /* Add general UI js library. */
+            $this->_add('tooltips.js', 'horde', true);
             if (!$prototype) {
                 $keys = array_keys($this->_files['horde']);
                 foreach ($keys as $key) {
@@ -194,9 +196,6 @@ class Horde_Script_Files
                 }
             }
 
-            /* Add general UI js library. */
-            $this->_add('tooltips.js', 'horde', true);
-
             // prototype.js must be included before any script that uses it
             if ($prototype) {
                 $keys = array_keys($this->_files['horde']);