提交 9b511ab7 编写于 作者: S st

[web日志]修改如果只有一个node,不显示*

上级 95ff1f98
......@@ -61,7 +61,9 @@ MWF.xApplication.LogViewer.Main = new Class({
o2.Actions.load("x_program_center").CommandAction.getNodeInfoList(
function( json ){
var nodeList = json.data.nodeList;
new Element("option", {"value": "*", "text": "*"}).inject(this.nodeSelect);
if(nodeList.length>1){
new Element("option", {"value": "*", "text": "*"}).inject(this.nodeSelect);
}
nodeList.each(function (node) {
new Element("option", {
"value": node.node.nodeAgentPort,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册