From 7fd00ce8ae5f62808df357718b795808560354ee Mon Sep 17 00:00:00 2001 From: phamt Date: Wed, 13 Feb 2013 19:41:21 +0000 Subject: [PATCH] Renamed function to open dialog to delete profile. Added new line at end of directory entry. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15167 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-UI/js/custom/zvmUtils.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xCAT-UI/js/custom/zvmUtils.js b/xCAT-UI/js/custom/zvmUtils.js index 9a1653591..f856b8f46 100644 --- a/xCAT-UI/js/custom/zvmUtils.js +++ b/xCAT-UI/js/custom/zvmUtils.js @@ -5839,7 +5839,7 @@ function configProfilePanel(panelId) { deleteLnk.click(function() { var profiles = getNodesChecked(tableId); if (profiles) { - openDeleteProfileDialog(profiles); + deleteProfileDialog(profiles); } }); @@ -6239,6 +6239,10 @@ function editProfileDialog(profile, pool, size, entry) { } }); + // A newline at the end of directory entry is needed + entry = entry.replace(/^\s+|\s+$/g, ''); + entry += '\n'; + // Write file to /var/tmp $.ajax({ url : 'lib/cmd.php',