From 8e8d97a5d20b72e5145db94b307a685eabfdfa9b Mon Sep 17 00:00:00 2001 From: phamt <phamt@8638fb3e-16cb-4fca-ae20-7b5d299a9bcd> Date: Thu, 18 Nov 2010 16:44:01 +0000 Subject: [PATCH] Added "click to edit" to comments tooltip. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8206 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-UI/js/nodes/nodes.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xCAT-UI/js/nodes/nodes.js b/xCAT-UI/js/nodes/nodes.js index 1ba7745d0..497e5c149 100644 --- a/xCAT-UI/js/nodes/nodes.js +++ b/xCAT-UI/js/nodes/nodes.js @@ -1895,6 +1895,7 @@ function createCommentsToolTip(comment) { }; var saveLnk = $('<a>Save</a>').css(lnkStyle).hide(); var cancelLnk = $('<a>Cancel</a>').css(lnkStyle).hide(); + var infoSpan = $('<span>Click to edit</span>').css(lnkStyle); // Save changes onclick saveLnk.bind('click', function(){ @@ -1930,17 +1931,20 @@ function createCommentsToolTip(comment) { // Hide cancel and save links $(this).hide(); saveLnk.hide(); + infoSpan.show(); }); // Show save link when comment is edited txtArea.bind('click', function(){ saveLnk.show(); cancelLnk.show(); + infoSpan.hide(); }); toolTip.append(txtArea); toolTip.append(cancelLnk); toolTip.append(saveLnk); + toolTip.append(infoSpan); return toolTip; }