mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-31 21:21:08 +00:00
tweak for preselected radio button fix
This commit is contained in:
parent
16be3cd2ca
commit
a8ab1f640f
@ -21,6 +21,14 @@ var ispRadio = null;
|
||||
//var out = java.lang.System.out;
|
||||
|
||||
//window.captureEvents( Event.MOUSEUP| Event.MOUSEDOWN| Event.MOUSEDRAG );
|
||||
function loadData()
|
||||
{
|
||||
radioValue = document.layers[ "allisp" ].layers[ "level1isp" ].
|
||||
layers[ "levelDisplay" ].layers[ 0 ].
|
||||
layers[ "moreInfoButton" ].document.
|
||||
forms[ 0 ].elements[ 0 ].value;
|
||||
radioClick( radioValue );
|
||||
}
|
||||
|
||||
function tabIndex( tab )
|
||||
{
|
||||
@ -133,6 +141,8 @@ function toggle( tabName )
|
||||
|
||||
function radioClick( radioValue )
|
||||
{
|
||||
// out.println( "radioClick: " + radioValue );
|
||||
|
||||
if ( radioValue != ispRadio )
|
||||
{
|
||||
allisp = document.layers[ "allisp" ];
|
||||
@ -147,7 +157,7 @@ function radioClick( radioValue )
|
||||
form = buttonlayer.document.forms[ 0 ];
|
||||
radio = form.elements[ 0 ];
|
||||
if ( radio.value == radioValue )
|
||||
radio.check == "1";
|
||||
radio.checked=true;
|
||||
else
|
||||
form.reset();
|
||||
}
|
||||
|
@ -22,7 +22,7 @@
|
||||
<LINK REL=STYLESHEET TYPE="text/JavaScript" ARCHIVE="asw.jar" HREF="sheet.js"></LINK>
|
||||
</HEAD>
|
||||
|
||||
<BODY BGCOLOR="FFFFFF">
|
||||
<BODY BGCOLOR="FFFFFF" ONLOAD="loadData()">
|
||||
|
||||
<!-- The layer below contains the headline and text of this screen -->
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user