mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-10 09:19:28 +00:00
Bug 344369, redesign label to specify control element directly, p=surkov, r=enndeakin+neil
This commit is contained in:
parent
a04f24f617
commit
55943fc855
@ -272,10 +272,7 @@
|
|||||||
|
|
||||||
<handlers>
|
<handlers>
|
||||||
<handler event="click" action="if (this.disabled) return;
|
<handler event="click" action="if (this.disabled) return;
|
||||||
var controlElementID = this.getAttribute('control');
|
var controlElement = this.labeledControlElement;
|
||||||
var controlElement;
|
|
||||||
if (controlElementID)
|
|
||||||
controlElement = document.getElementById(controlElementID);
|
|
||||||
if(controlElement)
|
if(controlElement)
|
||||||
controlElement.focus();
|
controlElement.focus();
|
||||||
"/>
|
"/>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user