summaryrefslogtreecommitdiff
path: root/framework/Web/Javascripts/prado
diff options
context:
space:
mode:
authorwei <>2006-07-03 04:14:34 +0000
committerwei <>2006-07-03 04:14:34 +0000
commitf923f4cd3c0e4c71e981ac6384f40cbb0b3c0968 (patch)
treedeb8649c2c91099e993f06414dc1114a8fea0d03 /framework/Web/Javascripts/prado
parent7e002c23edc5fb5db70935591aa6adeda25fc7fb (diff)
Fixed drop down list javascript problems in IE
Diffstat (limited to 'framework/Web/Javascripts/prado')
-rw-r--r--framework/Web/Javascripts/prado/element.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/framework/Web/Javascripts/prado/element.js b/framework/Web/Javascripts/prado/element.js
index 51756cd0..82f281fb 100644
--- a/framework/Web/Javascripts/prado/element.js
+++ b/framework/Web/Javascripts/prado/element.js
@@ -46,10 +46,9 @@ Prado.Element =
var el = $(element);
if(el && el.tagName.toLowerCase() == "select")
{
- while(el.length > 0)
- el.remove(0);
+ el.options.length = options.length;
for(var i = 0; i<options.length; i++)
- el.options[el.options.length] = new Option(options[i][0],options[i][1]);
+ el.options[i] = new Option(options[i][0],options[i][1]);
}
},