mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-23 10:54:33 +00:00
Make it possible for <preference> elements to notice checkbox listitems b=423407 r=Mano a=beltzner
This commit is contained in:
parent
072ebb3175
commit
907cb2f671
@ -843,8 +843,10 @@
|
||||
if (this.currentItem) {
|
||||
if (this.currentItem.getAttribute("type") != "checkbox")
|
||||
this.addItemToSelection(this.currentItem);
|
||||
else if (!this.currentItem.disabled)
|
||||
else if (!this.currentItem.disabled) {
|
||||
this.currentItem.checked = !this.currentItem.checked;
|
||||
this.currentItem.doCommand();
|
||||
}
|
||||
}
|
||||
]]>
|
||||
</handler>
|
||||
@ -1039,8 +1041,10 @@
|
||||
<handlers>
|
||||
<handler event="mousedown" button="0">
|
||||
<![CDATA[
|
||||
if (!this.disabled && !this.control.disabled)
|
||||
if (!this.disabled && !this.control.disabled) {
|
||||
this.checked = !this.checked;
|
||||
this.doCommand();
|
||||
}
|
||||
]]>
|
||||
</handler>
|
||||
</handlers>
|
||||
|
Loading…
x
Reference in New Issue
Block a user