From 1cd0bbc8cda0491baa46cf2a79c9e67e00c5245d Mon Sep 17 00:00:00 2001 From: ctrlaltca <> Date: Thu, 30 Aug 2012 14:18:57 +0000 Subject: Prado.Element.setAttribute() : remove the "readonly" attribute when it's set to false (the same already applies for "disabled") --- framework/Web/Javascripts/source/prado/scriptaculous-adapter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'framework/Web') 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 { -- cgit v1.2.3