diff --git a/xCAT-UI/js/configure/discover.js b/xCAT-UI/js/configure/discover.js index d6a041070..44d2b421b 100644 --- a/xCAT-UI/js/configure/discover.js +++ b/xCAT-UI/js/configure/discover.js @@ -62,16 +62,18 @@ function loadDiscoverPage(){ */ function updateDiscoverStep(){ $('#discoverStepDiv').empty(); - var showString = ''; + for (var index in steps){ - showString += '' + steps[index] + '')); + } else { + $('#discoverStepDiv').append($('' + steps[index] + '')); } - showString += '>' + steps[index] + '->'; + $('#discoverStepDiv').append($('')); } - showString = showString.substr(0, showString.length - 2); - $('#discoverStepDiv').html(showString); + + //remove last arrow + $('#discoverStepDiv span:last-child').remove(); } /**