mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
#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:
parent
bba460280b
commit
9ce26676e3
1 changed files with 6 additions and 0 deletions
|
|
@ -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) {};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue