]> git.evergreen-ils.org Git - working/Evergreen.git/commit
Support editable trees, which is needed if we want a usable checkbox column in a...
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 13 Oct 2009 05:23:45 +0000 (05:23 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 13 Oct 2009 05:23:45 +0000 (05:23 +0000)
commit272bbc6631b076b7dfcb28d6a861fa1a2c8cc997
tree0472239018224cd3b9e71623fc09ee112fb576ee
parentb2b781b0a5f22d56bb757fd705d3ffc589008dd0
Support editable trees, which is needed if we want a usable checkbox column in a tree.
And, support checkbox columns in trees.

An example:

<tree id="my_list" editable="true" />

JSAN.use('util.list');
var list = new util.list('my_list');
list.init( {
'columns' : [
{
'id' : 'select',
'type' : 'checkbox',
'editable' : true,
'label' : '',
'render' : function(my) { return true; } // Checked by default
                }
]
} );

But once a tree is editable, all tree cells are editable unless explicitly made otherwise, so you need 'editable' : false in the column definitions for such trees if you don't want cells in those columns to be editable.

git-svn-id: svn://svn.open-ils.org/ILS/trunk@14391 dcc99617-32d9-48b4-a31d-7c20da2025e4
Open-ILS/xul/staff_client/chrome/content/util/list.js
Open-ILS/xul/staff_client/server/circ/util.js
Open-ILS/xul/staff_client/server/patron/util.js
Open-ILS/xul/staff_client/server/skin/global.css