summaryrefslogtreecommitdiff
path: root/framework/Web/Javascripts/js/prado.js
diff options
context:
space:
mode:
authorwei <>2006-06-22 11:55:46 +0000
committerwei <>2006-06-22 11:55:46 +0000
commit817da66e1cb3548f728db9ff4a96e783ed7522b5 (patch)
tree6a994ae26d05054a9becaa82d8839cc778c56113 /framework/Web/Javascripts/js/prado.js
parent99ea5b7b4b90d0298f47223c0fc832b30c1903eb (diff)
Update callback adapter
Diffstat (limited to 'framework/Web/Javascripts/js/prado.js')
-rw-r--r--framework/Web/Javascripts/js/prado.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/framework/Web/Javascripts/js/prado.js b/framework/Web/Javascripts/js/prado.js
index f77fe0f2..c2f2fdfd 100644
--- a/framework/Web/Javascripts/js/prado.js
+++ b/framework/Web/Javascripts/js/prado.js
@@ -257,7 +257,8 @@ selection[method](isList?element:el,value);},click:function(element)
{var el=$(element);if(el)
Event.fireEvent(el,'click');},setAttribute:function(element,attribute,value)
{var el=$(element);if(attribute=="disabled"&&value==false)
-el.removeAttribute(attribute);else
+el.removeAttribute(attribute);else if(attribute.match(/^on/i))
+el[attribute]=eval("(function(event){"+value+"})");else
el.setAttribute(attribute,value);},setOptions:function(element,options)
{var el=$(element);if(el&&el.tagName.toLowerCase()=="select")
{while(el.length>0)