From 6065a1fed27fa2339c537eb2584221831921759a Mon Sep 17 00:00:00 2001 From: phamt Date: Sun, 25 Jul 2010 23:53:27 +0000 Subject: [PATCH] Added word-wrap to status bar and info bar. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6851 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-UI/css/style.css | 2 ++ xCAT-UI/js/nodes/nodes.js | 14 +++++++------- 2 files changed, 9 insertions(+), 7 deletions(-) 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