Since a tree can be opened with a double-click, we can't rely on 'twisty'
being set to load the child data.
Signed-off-by: Dan Wells <dbw2@calvin.edu>
if (!sel_lists[row_type]) sel_lists[row_type] = [];
sel_lists[row_type].push(id);
- if (twisty) {
- switch(row_type) {
- case 'aou' : obj.on_click_aou(id,twisty); break;
- case 'sdist' : obj.on_select_sdist(id,twisty); break;
- default: break;
- }
+ switch(row_type) {
+ case 'aou' : obj.on_click_aou(id,twisty); break;
+ case 'sdist' : obj.on_select_sdist(id,twisty); break;
+ default: break;
}
}
if (!sel_lists[row_type]) sel_lists[row_type] = [];
sel_lists[row_type].push(id);
- if (twisty) {
- switch(row_type) {
- case 'aou' : obj.on_click_aou(id,twisty); break;
- case 'ssub' : obj.on_select_ssub(id,twisty); break;
- default: break;
- }
+ switch(row_type) {
+ case 'aou' : obj.on_click_aou(id,twisty); break;
+ case 'ssub' : obj.on_select_ssub(id,twisty); break;
+ default: break;
}
}