From mboxrd@z Thu Jan 1 00:00:00 1970 From: rmccabe@sourceware.org Date: 26 Sep 2006 19:47:32 -0000 Subject: [Cluster-devel] conga/luci/cluster form-macros index_html reso ... Message-ID: <20060926194732.1140.qmail@sourceware.org> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit CVSROOT: /cvs/cluster Module name: conga Changes by: rmccabe at sourceware.org 2006-09-26 19:47:32 Modified files: luci/cluster : form-macros index_html resource_form_handlers.js Log message: make fence device form swapping work Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/form-macros.diff?cvsroot=cluster&r1=1.70&r2=1.71 http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/index_html.diff?cvsroot=cluster&r1=1.14&r2=1.15 http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/resource_form_handlers.js.diff?cvsroot=cluster&r1=1.13&r2=1.14 --- conga/luci/cluster/form-macros 2006/09/25 21:00:14 1.70 +++ conga/luci/cluster/form-macros 2006/09/26 19:47:32 1.71 @@ -688,6 +688,74 @@ +
+ + + + + + +
+ +
+
+ + + + + + +
Name:
IP Address:
Login:
Password:
+
+
+ + + + + +
Name:
IP Address:
Password:
+
+
+ + + + + + +
Name:
Login:
Password:
Hostname:
+
+
+ + + + + + +
Name:
IP Address:
Login:
Password:
+
+
+ + + + + + +
Name:
Login:
Password:
Hostname:
+
+
+
+ + + + + + + +
Name:
IP Address:
Login:
Password:
Auth Type:
+
+
+
+
First table row is status icon, name, and dropdown @@ -823,95 +891,37 @@
+ +

Fencing

+
Main Fencing Method -
- -
-
Container
- - +
+ +
+
+
Backup Fencing Method -
- -
+
+ +
+
+
--- conga/luci/cluster/index_html 2006/09/25 16:31:28 1.14 +++ conga/luci/cluster/index_html 2006/09/26 19:47:32 1.15 @@ -95,29 +95,24 @@ return false; } - function swap_fence_div(container_id, element_id) { - container_element = document.getElementById(container_id) - if (!container_element) { - alert('Can\'t find element with id = ' + container_id); - return (-1); - } - - child_element = document.getElementById(element_id); - if (!child_element) { - alert('Can\'t find element with id = ' + element_id); - return (-1); - } - - temp = container_element.firstChild; - container_element.replaceChild(child_element, container_element.firstChild); - invisible_div = document.getElementById('invisible'); - if (!invisible_div) { - alert('No invisible div'); - return (-1); - } + function swap_fence_div(container_id, element_id) { + var container_element = document.getElementById(container_id) + if (!container_element) { + alert('Can\'t find element with id = ' + container_id); + return (-1); + } - invisible_div.appendChild(temp); - } + var child_element = document.getElementById(element_id); + if (!child_element) { + alert('Can\'t find element with id = ' + element_id); + return (-1); + } + if (container_element.firstChild) + container_element.removeChild(container_element.firstChild); + var target = child_element.cloneNode(1); + target.id = null; + container_element.appendChild(target); + } //--> --- conga/luci/cluster/resource_form_handlers.js 2006/09/25 17:36:02 1.13 +++ conga/luci/cluster/resource_form_handlers.js 2006/09/26 19:47:32 1.14 @@ -328,6 +328,7 @@ var form = document.getElementsByTagName('form'); var master_form = null; var form_xml = ''; + var errors = new Array(); for (var i = 0 ; i < form.length ; i++) { if (form[i].name == 'master') {