projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e381237
)
prototypejs existence check.
author
Michael M Slusarz
<slusarz@curecanti.org>
Thu, 29 Jul 2010 16:48:01 +0000
(10:48 -0600)
committer
Michael M Slusarz
<slusarz@curecanti.org>
Thu, 29 Jul 2010 17:27:58 +0000
(11:27 -0600)
Automatically add prototpye.js if using a mode of Horde::addInlineScript()
that requires it ('dom', 'load').
framework/Core/lib/Horde.php
patch
|
blob
|
history
diff --git
a/framework/Core/lib/Horde.php
b/framework/Core/lib/Horde.php
index
4694845
..
ca24f39
100644
(file)
--- a/
framework/Core/lib/Horde.php
+++ b/
framework/Core/lib/Horde.php
@@
-1855,10
+1855,12
@@
HTML;
switch ($key) {
case 'dom':
+ Horde::addScriptFile('prototype.js', 'horde');
$val = 'document.observe("dom:loaded", function() {' . $val . '});';
break;
case 'load':
+ Horde::addScriptFile('prototype.js', 'horde');
$val = 'Event.observe(window, "load", function() {' . $val . '});';
break;
}