Removed 'Click to edit' messages from empty table cells.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6918 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
phamt 2010-07-30 12:37:14 +00:00
parent cc0620563e
commit 3585e90aba

View File

@ -280,6 +280,7 @@ function loadTable(data) {
}, {
onblur : 'submit', // Clicking outside editable area submits changes
type : 'textarea',
placeholder: ' ',
height : '30px' // The height of the text area
});
@ -340,9 +341,9 @@ function loadTable(data) {
return (value);
}, {
onblur : 'submit', // Clicking outside editable area
// submits changes
onblur : 'submit', // Clicking outside editable area submits changes
type : 'textarea',
placeholder: ' ',
height : '30px' // The height of the text area
});
});
@ -373,9 +374,9 @@ function loadTable(data) {
var vals = new Object();
for ( var j = 1; j < cols.length; j++) {
var val = cols.item(j).firstChild.nodeValue;
// Insert quotes
if (val == 'Click to edit') {
if (val == ' ') {
vals[j - 1] = '';
} else {
vals[j - 1] = val;
@ -386,7 +387,7 @@ function loadTable(data) {
newCont[i + 1] = vals;
}
}
// Update datatable
setConfigDatatable(tableId, dTable);
@ -442,9 +443,9 @@ function loadTable(data) {
return (value);
}, {
onblur : 'submit', // Clicking outside editable area submits
// changes
onblur : 'submit', // Clicking outside editable area submits changes
type : 'textarea',
placeholder: ' ',
height : '30px' // The height of the text area
});
});