diff --git a/xCAT-UI/css/style.css b/xCAT-UI/css/style.css index b7df50484..d492b18b2 100644 --- a/xCAT-UI/css/style.css +++ b/xCAT-UI/css/style.css @@ -264,6 +264,7 @@ span.ui-icon-info { .statusBar p { font: 12px verdana, arial, helvetica, sans-serif; max-width: 700px; + word-wrap: break-word; } /****************** Info bar ******************/ @@ -281,6 +282,7 @@ span.ui-icon-info { .infoBar p { padding: 0px 10px; display: inline-table; + word-wrap: break-word; } /****************** Data table ******************/ diff --git a/xCAT-UI/js/nodes/nodes.js b/xCAT-UI/js/nodes/nodes.js index 65e5354df..ada3dfa94 100644 --- a/xCAT-UI/js/nodes/nodes.js +++ b/xCAT-UI/js/nodes/nodes.js @@ -1584,19 +1584,19 @@ function deleteNode(tgtNodes) { // Append nothing to the string tgtNodesStr += nodes[i]; } else { - // For every 10 nodes, append a break - if ((i % 10) > 0) { - tgtNodesStr += nodes[i] + ', '; - } else { - tgtNodesStr += nodes[i] + ',
'; - } + // Append a comma to the string + tgtNodesStr += nodes[i] + ', '; } } } var deleteForm = $('
'); deleteForm.append(statBar); - deleteForm.append('

Do you want to delete ' + tgtNodesStr + '?

'); + deleteForm.append(statBar); + + // Word wrap + var instr = $('

Do you want to delete ' + tgtNodesStr + '?

').css('word-wrap', 'break-word'); + deleteForm.append(instr); /** * Delete