[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Cluster-devel] conga/luci/cluster resource_form_handlers.js



CVSROOT:	/cvs/cluster
Module name:	conga
Changes by:	rmccabe sourceware org	2007-08-23 15:02:46

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&r1=1.39&r2=1.40

--- conga/luci/cluster/resource_form_handlers.js	2007/08/08 21:00:06	1.39
+++ conga/luci/cluster/resource_form_handlers.js	2007/08/23 15:02:46	1.40
@@ -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);
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]