提交 293e330b 编写于 作者: N nilspreusker

small layout fix for treeView component, substituted tabs with spaces in cycle...

small layout fix for treeView component, substituted tabs with spaces in cycle javascript files, added null checks for history event based tree node highlighting
上级 03ed90c7
......@@ -18,7 +18,9 @@
}
.artifact-code, .artifact-text-plain, .artifact-html {
margin: 1.2em;
background-color:#FFFFFF;
margin:0.5em;
padding:1.2em;
}
.artifact-html iframe, .artifact-html-reference iframe {
......
#fileChooserTree a:hover {
text-decoration: none;
}
\ No newline at end of file
......@@ -49,6 +49,10 @@
text-decoration: none;
}
#treeDiv1 .ygtvcontent {
line-height:1.2em;
}
/* first or middle sibling, no children */
.ygtvtn { background: url("/activiti-cycle/res/images/folder/tn.gif") 0 0 no-repeat; width:17px; height:22px; }
......
......@@ -187,11 +187,10 @@
}
return false;
});
var node = nodes[0];
if(node && (node != this._treeView.currentFocus) ) {
if(nodes && nodes[0] && (nodes[0] != this._treeView.currentFocus) ) {
// if the node isn't already focused this is a browser history event and we manually set focus to the current node
node.focus();
nodes[0].focus();
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册