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
This commit is contained in:
phamt 2010-12-20 19:55:19 +00:00
parent f681e6426e
commit aad10bb48c

View File

@ -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;
}