From: rmccabe@sourceware.org <rmccabe@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] conga/luci/cluster resource_form_handlers.js
Date: 23 Aug 2007 15:01:58 -0000 [thread overview]
Message-ID: <20070823150158.3980.qmail@sourceware.org> (raw)
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);
}
next reply other threads:[~2007-08-23 15:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-23 15:01 rmccabe [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-08-23 15:02 [Cluster-devel] conga/luci/cluster resource_form_handlers.js rmccabe
2007-08-23 4:10 rmccabe
2006-10-07 20:12 rmccabe
2006-10-04 16:42 rmccabe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070823150158.3980.qmail@sourceware.org \
--to=rmccabe@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).