Use more reliable multiple select instead of checkboxes.
authorW. Trevor King <wking@drexel.edu>
Sun, 18 Jul 2010 12:56:02 +0000 (08:56 -0400)
committerW. Trevor King <wking@drexel.edu>
Sun, 18 Jul 2010 16:45:59 +0000 (12:45 -0400)
commitff970e60308d19534a1a991c47da78d3603f3d04
treefe1c661cd8a4866332caa1630d58c3cba536e782
parent3fd57f5e9e9fd7cdabb3bc5645f28e211198df35
Use more reliable multiple select instead of checkboxes.

I couldn't figure out how to use setCellValue to change and display
the checkbox values.  The current implementation adds a "Set Tags"
button which reads off the selected rows and uploads any tag changes.

Problem with the current implementation:

When the tree is rebuilt following a data refresh, the rebuild seems
to unselect any repainted rows.  I'm not sure why.  The current
workaround is to run setup_checkboxes() some reasonable delay after
refreshing the data.  Too bad I can't find a blocking refresh, or
better yet, a post-refresh hook to use instead of setTimeout().

Anyhow, any tag selection activity by the user that happens during the
timeout will, obviously, be overwritten by the setup_checkboxes()
call.
static/dirtag.js
template/dirtag.xul