The checkboxes were not settable in the previous implementation.
[dirtag.git] / static / dirtag.xul
index 9481f341defcc169e6f9d96e8ecf545c268af531..cf5ac73104a6ba7161e00804f5f2c5558272c0c2 100644 (file)
@@ -28,7 +28,7 @@
    xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
    >
 
-  <script src="dirtag.js"/>
+  <script type="application/javascript" src="dirtag.js"/>
   <groupbox id="new-tag">
     <caption label="&new_tag.caption;"/>
     <hbox>
     <splitter collapse="before"><grippy/></splitter>
     <groupbox id="selected" flex="2" orient="horizontal">
       <caption label="&selected.caption;"/>
-      <groupbox id="tags" oncommand="tag_check(event);" flex="1">
+      <groupbox id="tags" flex="1">
        <caption label="&tags.caption;"/>
-       <tree id="checkbox-tree" rows="2" seltype="single" editable="true"
+       <tree id="checkbox-tree" rows="2" seltype="single" selstype="primary"
+             editable="true"
              datasources="tag-tree.rdf raw-tree.rdf"
              ref="http://dirtag.com/tag/files"
-             flags="dont-build-content" onselect="tag_check();" flex="1">
+             flex="1">
+         <!-- checkbox callback attached in dirtag.js's initialize() -->
          <treecols>
            <treecol id="checkbox-tree-check-column" label="CK" type="checkbox"
                     editable="true"/>
              <treechildren>
                <treeitem uri="rdf:*" open="true">
                  <treerow>
-                   <treecell value="true"/>
+                   <treecell value="true" editable="true"/>
                    <treecell label="rdf:http://dirtag.com/rdf#name"/>
                  </treerow>
                </treeitem>