зеркало из https://github.com/mozilla/gecko-dev.git
Fix for bug #49066, r=saari
This commit is contained in:
Родитель
5eab399a51
Коммит
68ddf0eb55
|
@ -114,7 +114,7 @@ function commonDialogOnLoad()
|
|||
|
||||
var label = param.GetString(4);
|
||||
if (label) setElementText(labelID, label);
|
||||
field.focus();
|
||||
field.focusTextField();
|
||||
|
||||
break;
|
||||
case 1:
|
||||
|
@ -136,7 +136,7 @@ function commonDialogOnLoad()
|
|||
unHideElementByID(containerID);
|
||||
var field = document.getElementById(fieldID);
|
||||
field.value = param.GetString(6);
|
||||
field.focus();
|
||||
field.focusTextField();
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
@ -253,6 +253,18 @@
|
|||
document.getAnonymousNodes(this)[0].firstChild.select();
|
||||
</body>
|
||||
</method>
|
||||
|
||||
<method name="focusTextField">
|
||||
<body>
|
||||
document.getAnonymousNodes(this)[0].firstChild.focus();
|
||||
</body>
|
||||
</method>
|
||||
|
||||
<method name="blur">
|
||||
<body>
|
||||
document.getAnonymousNodes(this)[0].firstChild.blur();
|
||||
</body>
|
||||
</method>
|
||||
|
||||
<property name="controllers" onget="return document.getAnonymousNodes(this)[0].firstChild.controllers;"/>
|
||||
<property name="textLength" onget="return document.getAnonymousNodes(this)[0].firstChild.textLength;"/>
|
||||
|
@ -270,8 +282,8 @@
|
|||
</method>
|
||||
</interface>
|
||||
<handlers>
|
||||
<handler type="focus" value="this.setAttribute('focused','true'); document.getAnonymousNodes(this)[0].firstChild.focus(); "/>
|
||||
<handler type="blur" value="this.removeAttribute('focused'); document.getAnonymousNodes(this)[0].firstChild.blur();"/>
|
||||
<handler type="focus" capturer="true" value="this.setAttribute('focused','true');"/>
|
||||
<handler type="blur" capturer="true" value="this.removeAttribute('focused');"/>
|
||||
</handlers>
|
||||
</binding>
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче