나는 XULXUL 트리의 체크 박스 변경 사항을 잡기 위해 어떤 이벤트를 캡처해야합니까?
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://zotero-report-customizer/skin/options.css"?>
<!DOCTYPE window SYSTEM "chrome://zotero-report-customizer/locale/zotero-report-customizer.dtd">
<prefwindow id="zotero-report-customizer-perf" title="&zotero-report-customizer.name;" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" onload="initializePrefs();">
<stringbundleset id="stringbundleset">
<stringbundle id="zotero-report-customizer-options" src="chrome://zotero-report-customizer/locale/options.properties" />
<stringbundle id="zotero-options" src="chrome://zotero/locale/zotero.properties" />
</stringbundleset>
<prefpane label="&zotero-report-customizer.remove;" id="zotero-report-customizer-perfpane">
<preferences id="preferences"/>
<groupbox>
<caption label="&zotero-report-customizer.remove;" />
<tree flex="1" id="treeCollection" seltype="single" hidecolumnpicker="true" height="400" editable="true" onselect="togglePref(this);">
<treecols>
<treecol id="show" primary="true" type="checkbox" label="Show" editable="true" width="40"/>
<treecol id="field" label="Field" editable="false" flex="1"/>
</treecols>
<treechildren id="itemTypes"/>
</tree>
</groupbox>
</prefpane>
<script src="chrome://zotero/content/include.js" />
<script src="chrome://zotero-report-customizer/content/include.js" />
<script src="options.js" />
</prefwindow>
내가 dynamially 체크 박스와 나무 행을 추가의이 비트를 가지고; 그들은 잘 나타납니다. 하지만 "켜기 ..."이벤트에서 나는 체크 박스를 토글하는 것을 알아 차릴 필요가 있습니까? Onselect는 그것을하지 않습니다.