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
This commit is contained in:
parent
4f29372919
commit
6065a1fed2
@ -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 ******************/
|
||||
|
@ -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] + ', <br>';
|
||||
}
|
||||
// Append a comma to the string
|
||||
tgtNodesStr += nodes[i] + ', ';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var deleteForm = $('<div class="form"></div>');
|
||||
deleteForm.append(statBar);
|
||||
deleteForm.append('<p>Do you want to delete ' + tgtNodesStr + '?</p>');
|
||||
deleteForm.append(statBar);
|
||||
|
||||
// Word wrap
|
||||
var instr = $('<p>Do you want to delete ' + tgtNodesStr + '?</p>').css('word-wrap', 'break-word');
|
||||
deleteForm.append(instr);
|
||||
|
||||
/**
|
||||
* Delete
|
||||
|
Loading…
Reference in New Issue
Block a user