From 3585e90aba7ee7ab1932b2fcc9c42cae4323add6 Mon Sep 17 00:00:00 2001 From: phamt Date: Fri, 30 Jul 2010 12:37:14 +0000 Subject: [PATCH] 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 --- xCAT-UI/js/configure/configure.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/xCAT-UI/js/configure/configure.js b/xCAT-UI/js/configure/configure.js index b1656445f..245fe43ec 100644 --- a/xCAT-UI/js/configure/configure.js +++ b/xCAT-UI/js/configure/configure.js @@ -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 }); });