diff --git a/javascript/CMSMain_left.js b/javascript/CMSMain_left.js index 423d7c20..46200b3f 100755 --- a/javascript/CMSMain_left.js +++ b/javascript/CMSMain_left.js @@ -323,9 +323,22 @@ batchActionGlobals = { batchActionGlobals.selectedNodes[idx] = false; } else { + // Open node in order to allow proper selection of children + if(Element.hasClassName(selectedNode, 'unexpanded')) { + selectedNode.open(); + } + + // Select node selectedNode.addNodeClass('selected'); selectedNode.selected = true; batchActionGlobals.selectedNodes[idx] = true; + + // Open all existing children, which might trigger further + // ajaxExansion calls to ensure all nodes are selectable + var children = selectedNode.getElementsByTagName('li'); + for(var i=0; i