From aad10bb48ca3df3936145323189e27bfb8e144c2 Mon Sep 17 00:00:00 2001 From: phamt Date: Mon, 20 Dec 2010 19:55:19 +0000 Subject: [PATCH] Removed arrow brackets from node attribute descriptions. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8487 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-UI/js/nodes/nodes.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/xCAT-UI/js/nodes/nodes.js b/xCAT-UI/js/nodes/nodes.js index cba07d1ee..912481586 100644 --- a/xCAT-UI/js/nodes/nodes.js +++ b/xCAT-UI/js/nodes/nodes.js @@ -2170,9 +2170,15 @@ function setDefAttrs(data) { key = jQuery.trim(attr.substring(0, attr.indexOf(':'))); descr = jQuery.trim(attr.substring(attr.indexOf(':') + 1)); + // Remove arrow brackets + descr = descr.replace(new RegExp('<|>', 'g'), ''); + // Set hash table where key = attribute name and value = description defAttrs[key] = descr; - } else { + } else { + // Remove arrow brackets + attr = attr.replace(new RegExp('<|>', 'g'), ''); + // Append description to hash table defAttrs[key] = defAttrs[key] + '\n' + attr; }