From c8a1f2046cb8c6cd063b212f0c5989e2e8e31138 Mon Sep 17 00:00:00 2001 From: xq2005 Date: Tue, 20 Mar 2012 06:31:03 +0000 Subject: [PATCH] fix bug 3505123 for ganglia node map in order git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11904 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-UI/js/monitor/gangliamon.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xCAT-UI/js/monitor/gangliamon.js b/xCAT-UI/js/monitor/gangliamon.js index ffde97201..2fd4c4ddd 100644 --- a/xCAT-UI/js/monitor/gangliamon.js +++ b/xCAT-UI/js/monitor/gangliamon.js @@ -876,6 +876,7 @@ function drawGangliaNodesAreaPic(type, name) { var templength = 0; var showStr = ''; var nodename = ''; + var temparray; switch(type) { case 'blade': { @@ -898,10 +899,11 @@ function drawGangliaNodesAreaPic(type, name) { } $('#gangliaNodes').html(''); + temparray = arraypoint.sort(); templength = arraypoint.length; for (index = 0; index < templength; index++) { - nodename = arraypoint[index]; + nodename = temparray[index]; switch (nodeStatus[nodename]) { case 'ERROR': showStr = '
  • ';