Fix for 49118, r=ben

This commit is contained in:
hyatt%netscape.com 2000-08-16 22:50:25 +00:00
parent 80451f1c55
commit f45b24c116
2 changed files with 4 additions and 4 deletions

View File

@ -114,7 +114,7 @@ function commonDialogOnLoad()
var label = param.GetString(4);
if (label) setElementText(labelID, label);
field.focusTextField();
field.focus();
break;
case 1:
@ -136,7 +136,7 @@ function commonDialogOnLoad()
unHideElementByID(containerID);
var field = document.getElementById(fieldID);
field.value = param.GetString(6);
field.focusTextField();
field.focus();
break;
}

View File

@ -254,7 +254,7 @@
</body>
</method>
<method name="focusTextField">
<method name="focus">
<body>
document.getAnonymousNodes(this)[0].firstChild.focus();
</body>
@ -266,7 +266,7 @@
</body>
</method>
<property name="controllers" onget="return document.getAnonymousNodes(this)[0].firstChild.controllers;"/>
<property name="controllers" onget="return document.getAnonymousNodes(this)[0].controllers"/>
<property name="textLength" onget="return document.getAnonymousNodes(this)[0].firstChild.textLength;"/>
<property name="selectionStart" onset="document.getAnonymousNodes(this)[0].firstChild.selectionStart = val; return val;"
onget="return document.getAnonymousNodes(this)[0].firstChild.selectionStart;"/>