Skip to content
Snippets Groups Projects
Commit b0ca37ba authored by srosse's avatar srosse
Browse files

OO-658: fix an CSS issue where the open/close link is hidden by the select...

OO-658: fix an CSS issue where the open/close link is hidden by the select link, enable to close menu item in the admin tab
parent f674f4e6
No related branches found
No related tags found
No related merge requests found
......@@ -51,7 +51,7 @@ public class SystemAdminMainController extends GenericMainController implements
super(ureq, wControl);
init(ureq);
//getMenuTree().setRootVisible(false);
getMenuTree().setExpandSelectedNode(false);
addCssClassToMain("o_sysadmin");
}
......
......@@ -378,32 +378,36 @@ public abstract class GenericMainController extends MainLayoutBasicController im
if(stack.contains(source)) {
popController(source);
} else if (source == olatMenuTree) {
if (event.getCommand().equals(MenuTree.COMMAND_TREENODE_CLICKED)) {
// process menu commands
TreeNode selTreeNode = olatMenuTree.getSelectedNode();
// cleanup old content controller (never null)
removeAsListenerAndDispose(contentCtr);
// create new content controller
// Following cases:
// 1a) Simple Action Extension using only ureq and windowControl ->
// handled by default implementation of createController
// 1b) Specialised Action Extension which needs some more internals ->
// handled by the class extending GenericMainController, by overwriting
// createController
// 2) uobject is something special which needs evaluation by class
// extending GenericMainController
Object uobject = selTreeNode.getUserObject();
TreeNode delegatee = selTreeNode.getDelegate();
if (delegatee != null) {
olatMenuTree.setSelectedNode(delegatee);
if (event instanceof TreeEvent && event.getCommand().equals(MenuTree.COMMAND_TREENODE_CLICKED)) {
TreeEvent te = (TreeEvent)event;
if(te.getSubCommand() != null) {
// filter open/close events
} else {
// process menu commands
TreeNode selTreeNode = olatMenuTree.getSelectedNode();
// cleanup old content controller (never null)
removeAsListenerAndDispose(contentCtr);
// create new content controller
// Following cases:
// 1a) Simple Action Extension using only ureq and windowControl ->
// handled by default implementation of createController
// 1b) Specialised Action Extension which needs some more internals ->
// handled by the class extending GenericMainController, by overwriting
// createController
// 2) uobject is something special which needs evaluation by class
// extending GenericMainController
Object uobject = selTreeNode.getUserObject();
TreeNode delegatee = selTreeNode.getDelegate();
if (delegatee != null) {
olatMenuTree.setSelectedNode(delegatee);
}
contentCtr = getContentCtr(uobject, ureq);
listenTo(contentCtr);
Component resComp = contentCtr.getInitialComponent();
content.setContent(resComp);
addToHistory(ureq, contentCtr);
}
contentCtr = getContentCtr(uobject, ureq);
listenTo(contentCtr);
Component resComp = contentCtr.getInitialComponent();
content.setContent(resComp);
// fxdiff BAKS-7 Resume function
addToHistory(ureq, contentCtr);
} else { // the action was not allowed anymore
content.setContent(null); // display an empty field (empty panel)
}
......
......@@ -157,6 +157,13 @@ div.b_tree {
left: 0px;
z-index: 9;
}
.b_tree_level_open.b_tree_oc_l1 {
z-index: 10;
}
.b_tree_level_close.b_tree_oc_l1 {
z-index: 10;
}
/* selected, hovered, active <a> tag */
......
source diff could not be displayed: it is too large. Options to address this: view the blob.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment