1
<?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不會這樣做。