From e19ac3ebece43a1e2b7d2c3aa1df1e311da8c7c9 Mon Sep 17 00:00:00 2001 From: tof <> Date: Tue, 18 Mar 2008 09:57:53 +0000 Subject: Fixed a bug in TCallbackClientScript::setStyle method. Add a JS function to 'camelize' the styles properties --- .../Web/Javascripts/source/prado/scriptaculous-adapter.js | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'framework/Web/Javascripts') 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); } }; -- cgit v1.2.3