From ff94e90a892c2847ac23f7de3811ca78a36683e5 Mon Sep 17 00:00:00 2001 From: phamt Date: Fri, 8 Oct 2010 03:56:24 +0000 Subject: [PATCH] Changed how output for xdsh command is handled. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7791 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-UI/js/nodes/nodes.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/xCAT-UI/js/nodes/nodes.js b/xCAT-UI/js/nodes/nodes.js index 01037fb4c..f03707241 100644 --- a/xCAT-UI/js/nodes/nodes.js +++ b/xCAT-UI/js/nodes/nodes.js @@ -1157,7 +1157,15 @@ function updateStatusBar(data) { $('#' + statBarId).find('img').hide(); // Write ajax response to status bar - var prg = writeRsp(rsp, '[A-Za-z0-9._-]+:'); + var prg = $('

'); + for (var i in rsp) { + for (var j in tgts) { + rsp[i] = rsp[i].replace(new RegExp(tgts[j] + ':', 'g'), '
'); + } + + prg.append(rsp[i]); + prg.append('
'); + } $('#' + statBarId).append(prg); // Enable fields