summaryrefslogtreecommitdiff
path: root/framework/Web/Javascripts
diff options
context:
space:
mode:
authortof <>2008-03-18 09:57:53 +0000
committertof <>2008-03-18 09:57:53 +0000
commite19ac3ebece43a1e2b7d2c3aa1df1e311da8c7c9 (patch)
treebb8d3ad59d7606ca1b9fe3287237e5c3b5b63be5 /framework/Web/Javascripts
parentbe4b366f59ed4725b893b4e2a1da33413e9740d7 (diff)
Fixed a bug in TCallbackClientScript::setStyle method.
Add a JS function to 'camelize' the styles properties
Diffstat (limited to 'framework/Web/Javascripts')
-rw-r--r--framework/Web/Javascripts/source/prado/scriptaculous-adapter.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/framework/Web/Javascripts/source/prado/scriptaculous-adapter.js b/framework/Web/Javascripts/source/prado/scriptaculous-adapter.js
index 2423df9a..2905deec 100644
--- a/framework/Web/Javascripts/source/prado/scriptaculous-adapter.js
+++ b/framework/Web/Javascripts/source/prado/scriptaculous-adapter.js
@@ -356,6 +356,17 @@ Prado.Element =
evaluateScript : function(content)
{
content.evalScripts();
+ },
+
+ setStyle : function (element, styles)
+ {
+ var s = {}
+ // Camelize all styles keys
+ for (var property in styles)
+ {
+ s[property.camelize()]=styles[property].camelize();
+ }
+ Element.setStyle(element, s);
}
};