From mboxrd@z Thu Jan 1 00:00:00 1970 From: rmccabe@sourceware.org Date: 10 Jan 2007 20:02:19 -0000 Subject: [Cluster-devel] conga/luci/cluster fence_device.js form-macros Message-ID: <20070110200219.25267.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 2007-01-10 20:02:16 Modified files: luci/cluster : fence_device.js form-macros Log message: more node fencing Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/fence_device.js.diff?cvsroot=cluster&r1=1.7&r2=1.8 http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/form-macros.diff?cvsroot=cluster&r1=1.148&r2=1.149 --- conga/luci/cluster/fence_device.js 2007/01/09 23:28:02 1.7 +++ conga/luci/cluster/fence_device.js 2007/01/10 20:02:16 1.8 @@ -27,14 +27,17 @@ form_elem.appendChild(cloned_iform); var ielem = cloned_iform.getElementsByTagName('input'); for (var i = 0 ; i < ielem.length ; i++) { - if (ielem[i].type == 'button' && ielem[i].name == 'remove_fence') { + if (ielem[i].name == 'parent_fencedev') { + ielem[i].value = fi_cont_id; + } else if ( ielem[i].type == 'button' && + ielem[i].name == 'remove_fence') + { ielem[i].setAttribute('onclick', 'del_fence_instance(\'' + cloned_iform.id + '\')'); - break; } } - instance_div.appendChild(cloned_iform); + instance_div.appendChild(form_elem); } } @@ -107,10 +110,13 @@ form_elem.appendChild(cloned_iform); var ielem = cloned_iform.getElementsByTagName('input'); for (var i = 0 ; i < ielem.length ; i++) { - if (ielem[i].type == 'button' && ielem[i].name == 'remove_fence') { + if (ielem[i].name == 'parent_fencedev') { + ielem[i].value = container_id; + } else if ( ielem[i].type == 'button' + && ielem[i].name == 'remove_fence') + { ielem[i].setAttribute('onclick', 'del_fence_instance(\'' + cloned_iform.id + '\')'); - break; } } idiv.appendChild(form_elem); --- conga/luci/cluster/form-macros 2007/01/09 23:28:02 1.148 +++ conga/luci/cluster/form-macros 2007/01/10 20:02:16 1.149 @@ -1250,7 +1250,7 @@ IP Address - @@ -1268,7 +1268,7 @@ Password - @@ -1308,7 +1308,7 @@ IP Address - @@ -1326,7 +1326,7 @@ Password - @@ -1366,7 +1366,7 @@ IP Address - @@ -1375,7 +1375,7 @@ Password - @@ -1427,7 +1427,7 @@ Password - @@ -1462,7 +1462,7 @@ IP Address - @@ -1476,7 +1476,7 @@ Password - @@ -1524,7 +1524,7 @@ Password - @@ -1561,7 +1561,7 @@ IP Address - @@ -1579,7 +1579,7 @@ Password - @@ -1618,7 +1618,12 @@ IP Address - + + + Login @@ -1632,7 +1637,7 @@ Password - @@ -1672,7 +1677,7 @@ IP Address - @@ -1681,7 +1686,7 @@ Password - @@ -1808,7 +1813,7 @@ IP Address - @@ -1822,7 +1827,7 @@ Password - @@ -1860,7 +1865,7 @@ IP Address - @@ -1878,7 +1883,7 @@ Password - @@ -2020,7 +2025,7 @@ IP Address - @@ -2468,8 +2473,8 @@ Blade - +