#18630864 : for IE, set default index to select box

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7209 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
haneul 2010-01-21 08:23:19 +00:00
parent bba460280b
commit 9ce26676e3

View file

@ -711,6 +711,12 @@ function doShowWidgetSizeSetup(px, py, obj) {
jQuery.each(opts, function(key, val){
var el = form[0].elements[key];
if (el) el.value = val;
if (el.tagName.toLowerCase() == "select")
{
if(el.selectedIndex == -1) {
el.selectedIndex = 0;
}
}
});
try { form[0].elements[0].focus() } catch(e) {};