summaryrefslogtreecommitdiff
path: root/framework/Web/Javascripts/source
diff options
context:
space:
mode:
authorctrlaltca <>2012-08-30 14:18:57 +0000
committerctrlaltca <>2012-08-30 14:18:57 +0000
commit1cd0bbc8cda0491baa46cf2a79c9e67e00c5245d (patch)
treee325f390bab9b9cfcefb9a209a398b6641e77e4c /framework/Web/Javascripts/source
parent6477bde32245a3755cae7f19851166395a77e779 (diff)
Prado.Element.setAttribute() : remove the "readonly" attribute when it's set to false (the same already applies for "disabled")
Diffstat (limited to 'framework/Web/Javascripts/source')
-rw-r--r--framework/Web/Javascripts/source/prado/scriptaculous-adapter.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/Web/Javascripts/source/prado/scriptaculous-adapter.js b/framework/Web/Javascripts/source/prado/scriptaculous-adapter.js
index c1b7f814..3c186d3e 100644
--- a/framework/Web/Javascripts/source/prado/scriptaculous-adapter.js
+++ b/framework/Web/Javascripts/source/prado/scriptaculous-adapter.js
@@ -283,7 +283,7 @@ Prado.Element =
{
var el = $(element);
if(!el) return;
- if((attribute == "disabled" || attribute == "multiple") && value==false)
+ if((attribute == "disabled" || attribute == "multiple" || attribute == "readonly") && value==false)
el.removeAttribute(attribute);
else if(attribute.match(/^on/i)) //event methods
{