[Cluster-devel] conga/luci/cluster resource_form_handlers.js
rmccabe at sourceware.org
rmccabe at sourceware.org
Thu Aug 23 15:01:58 UTC 2007
CVSROOT: /cvs/cluster
Module name: conga
Branch: RHEL4
Changes by: rmccabe at sourceware.org 2007-08-23 15:01:58
Modified files:
luci/cluster : resource_form_handlers.js
Log message:
Fix for 253914 from the RHEL5 branch
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/resource_form_handlers.js.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.29.2.5&r2=1.29.2.6
--- conga/luci/cluster/resource_form_handlers.js 2007/08/09 21:28:50 1.29.2.5
+++ conga/luci/cluster/resource_form_handlers.js 2007/08/23 15:01:58 1.29.2.6
@@ -16,12 +16,14 @@
var res = document.getElementById(res_id);
if (!res || !replace)
return (-1);
- var new_uuid = update_resource_form_uuid(res, form.parent_uuid.value, form.tree_level.value, form.uuid.value);
- var sopt = document.getElementById('gres_chooser');
- if (sopt)
- sopt.options[sel.selectedIndex].className = 'invisible';
- return (replace.parentNode.replaceChild(res, replace));
+ var clres = res.cloneNode(1);
+ clres.id = null;
+ clres.className = null;
+
+ var new_uuid = update_resource_form_uuid(clres, form.parent_uuid.value, form.tree_level.value, form.uuid.value);
+
+ return (replace.parentNode.replaceChild(clres, replace));
}
function collapse_div(image) {
@@ -333,6 +335,7 @@
}
div.parentNode.removeChild(div);
+/*
var globalres = document.getElementById('global_resources_block');
if (!globalres)
return (0);
@@ -357,6 +360,7 @@
sopt[i].className = null;
}
}
+*/
return (0);
}
More information about the Cluster-devel
mailing list