conga ./conga.spec.in.in luci/cluster/fence_de ...
CVSROOT: /cvs/cluster
Module name: conga
Branch: RHEL5
Changes by: rmccabe at sourceware.org 2007-07-12 04:41:39
Modified files:
. : conga.spec.in.in
luci/cluster : fence_device.js form-macros index_html
resource-form-macros resource_form_handlers.js validate_config_qdisk.js validate_fence.js
luci/homebase : form-macros homebase_common.js index_html
validate_cluster_add.js validate_cluster_add_initial.js validate_perm.js validate_sys_add.js validate_sys_remove.js validate_user_add.js validate_user_del.js
Log message:
Fix 245202: Conga needs to support Internet Explorer 6.0 and later
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/conga.spec.in.in.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.45.2.44&r2=1.45.2.45
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/fence_device.js.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.2.2.5&r2=1.2.2.6
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/form-macros.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.90.2.24&r2=1.90.2.25
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/index_html.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.20.2.11&r2=1.20.2.12
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/resource-form-macros.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.21.2.7&r2=1.21.2.8
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/resource_form_handlers.js.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.20.2.8&r2=1.20.2.9
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/validate_config_qdisk.js.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.4.2.2&r2=1.4.2.3
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/validate_fence.js.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.1.2.2&r2=1.1.2.3
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/homebase/form-macros.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.44.2.9&r2=1.44.2.10
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/homebase/homebase_common.js.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.13.2.3&r2=1.13.2.4
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/homebase/index_html.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.18.2.4&r2=1.18.2.5
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/homebase/validate_cluster_add.js.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.4.2.3&r2=1.4.2.4
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/homebase/validate_cluster_add_initial.js.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.1&r2=1.1.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/homebase/validate_perm.js.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.2&r2=1.2.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/homebase/validate_sys_add.js.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.1&r2=1.1.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/homebase/validate_sys_remove.js.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.2.2.1&r2=1.2.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/homebase/validate_user_add.js.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.3&r2=1.3.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/homebase/validate_user_del.js.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.2&r2=1.2.2.1
conga.spec.in.in +4 -1
@@ -282,6 +282,10 @@ ### changelog ### +%changelog +* Thu Jul 12 2007 Ryan McCabe <[email protected]> 0.10.0-2 +- Fixed bz245202 (Conga needs to support Internet Explorer 6.0 and later) +- Resolves: bz245202 %changelog * Wed Jun 27 2007 Ryan McCabe <[email protected]> 0.10.0-1
@@ -310,7 +314,6 @@ - Fixed bz225588 (luci web app does not enforce selection of fence port) - Fixed bz212022 (cannot create cluster using ip addresses) - Fixed bz223162 (Error trying to create a new fence device for a cluster node) - - Upgraded to the latest Plone (2.5.3) - Added a "reprobe storage" button that invalidates cached storage reports and forces a new probe.
luci/cluster/fence_device.js +44 -27
168 lines not on this page · raw message
luci/cluster/form-macros +18 -20
@@ -384,7 +384,7 @@ <tal:block tal:define="global cur_sysnum python:0" /> - <tbody class="systemsTable"> + <tbody class="systemsTable" id="sys_tbody"> <tal:block tal:condition="exists: add_cluster/nodes" tal:repeat="cur_sys add_cluster/nodes">
@@ -404,7 +404,7 @@ <td class="systemsTable"> <tal:block tal:condition="not: exists: sys/auth"> <input type="password" - onChange="pwd0Change(this.form)" + onchange="pwd0Change(this.form)" autocomplete="off" tal:attributes=" value nothing;
@@ -414,7 +414,7 @@ </tal:block> <tal:block tal:condition="exists: sys/auth"> - <input type="text" onChange="pwd0Change(this.form)" + <input type="text" onchange="pwd0Change(this.form)" disabled="disabled" value="[authenticated]" tal:attributes=" class python: 'hbInputPass' + ('errors' in sys and ' error' or '');
@@ -461,9 +461,8 @@ </td> <td class="systemsTable"> <input type="password" - onChange="pwd0Change(this.form)" + onchange="pwd0Change(this.form)" class="hbInputPass" autocomplete="off" - onChange="pwd0Change(this.form)" id="__SYSTEM0:Passwd" name="__SYSTEM0:Passwd" /> </td> <td class="systemsTable">
@@ -480,7 +479,7 @@ </td> <td class="systemsTable"> <input type="password" - onChange="pwd0Change(this.form)" + onchange="pwd0Change(this.form)" class="hbInputPass" autocomplete="off" id="__SYSTEM1:Passwd" name="__SYSTEM1:Passwd" /> </td>
@@ -498,7 +497,7 @@ </td> <td class="systemsTable"> <input type="password" - onChange="pwd0Change(this.form)" + onchange="pwd0Change(this.form)" class="hbInputPass" autocomplete="off" id="__SYSTEM2:Passwd" name="__SYSTEM2:Passwd" /> </td>
@@ -609,7 +608,7 @@ </td></tr> </thead> - <tbody class="systemsTable"> + <tbody class="systemsTable" id="sys_tbody"> <tr class="systemsTable"> <td class="systemsTable">Cluster Name</td> <td class="systemsTable">
@@ -943,7 +942,7 @@ </td></tr> </thead> - <tbody class="systemsTable"> + <tbody class="systemsTable" id="sys_tbody"> <tr class="systemsTable"> <td class="systemsTable">Post Fail <span tal:attributes="onclick python:'window.location.assign(\'./?pagetype=80&clustername=' + request['clustername'] + '\')'">Delay</span> </td>
@@ -1009,7 +1008,7 @@ </td></tr> </thead> - <tbody class="systemsTable"> + <tbody class="systemsTable" id="sys_tbody"> <tr class="systemsTable"> <td class="systemsTable"> <input type="radio" name="mcast" value="False"
@@ -1093,7 +1092,7 @@ </td></tr> </thead> - <tbody class="systemsTable"> + <tbody class="systemsTable" id="sys_tbody"> <tr class="systemsTable" id="st_row"><td class="systemsTable" id="st_col"> <input type="radio" name="quorumd" value="False" onClick="disableChildrenInput('quorumdisk');"
@@ -1314,7 +1313,7 @@ <th class="systemsTable">Lock Server</th> </tr> </thead> - <tbody> + <tbody id="sys_tbody"> <tal:block tal:repeat="c clusterinfo/gulm_lockservers"> <tr class="systemsTable"> <td class="systemsTable">
@@ -1919,10 +1918,10 @@ <tr> <td>IP Address</td> <td> - <input name="hostname" type="text" + <input name="ipaddr" type="text" tal:attributes=" disabled cur_fencedev/isShared | nothing; - value cur_fencedev/hostname | nothing" /> + value cur_fencedev/ipaddr | nothing" /> </td> </tr> <tr>
@@ -3731,7 +3730,7 @@ <tal:block tal:define="global cur_sysnum python:0" /> - <tbody class="systemsTable"> + <tbody class="systemsTable" id="sys_tbody"> <tal:block tal:condition="exists: add_cluster/nodes" tal:repeat="cur_sys add_cluster/nodes">
@@ -3752,7 +3751,7 @@ <tal:block tal:condition="not: exists: sys/auth"> <input type="password" autocomplete="off" - onChange="pwd0Change(this.form)" + onchange="pwd0Change(this.form)" tal:attributes=" value nothing; class python: 'hbInputPass' + ('errors' in sys and ' error' or '');
@@ -3761,7 +3760,7 @@ </tal:block> <tal:block tal:condition="exists: sys/auth"> - <input type="text" onChange="pwd0Change(this.form)" + <input type="text" onchange="pwd0Change(this.form)" disabled="disabled" value="[authenticated]" tal:attributes=" class python: 'hbInputPass' + ('errors' in sys and ' error' or '');
@@ -3808,9 +3807,8 @@ </td> <td class="systemsTable"> <input type="password" - onChange="pwd0Change(this.form)" + onchange="pwd0Change(this.form)" class="hbInputPass" autocomplete="off" - onChange="pwd0Change(this.form)" id="__SYSTEM0:Passwd" name="__SYSTEM0:Passwd" /> </td> <td class="systemsTable">
@@ -4976,7 +4974,7 @@ <td class="cluster node fence_main fence"> <form name="main_fence_form"> <select name="select_div" - onChange="swap_fence_div('fence_container', + onchange="swap_fence_div('fence_container', this.options[this.selectedIndex].value)"> <tal:block metal:use-macro="here/form-macros/macros/shared-fence-option-list" /> </select>
luci/cluster/index_html +2 -2
@@ -203,7 +203,7 @@ <tal:block tal:define="ret python: request.SESSION.get('checkRet')"> <div class="retmsgs" id="retmsgsdiv" tal:condition="python:(ret and 'messages' in ret and len(ret['messages']))"> <div class="hbclosebox"> - <a href="javascript:hide_element('retmsgsdiv')"><img src="/luci/homebase/x.png" class="closeBox" title="dismiss"></a> + <img onclick="hide_element('retmsgsdiv')" src="/luci/homebase/x.png" class="closeBox" title="dismiss" /> </div> <p class="retmsgs">Status messages:</p> <ul class="statusmsg">
@@ -215,7 +215,7 @@ <div id="errmsgsdiv" class="errmsgs" tal:condition="python:(ret and 'errors' in ret and len(ret['errors']))"> <div class="hbclosebox"> - <a class="hbclosebox" href="javascript:hide_element('errmsgsdiv')"><img src="/luci/homebase/x.png" class="closeBox" title="dismiss"></a> + <img onclick="hide_element('errmsgsdiv')" src="/luci/homebase/x.png" class="closeBox" title="dismiss" /> </div> <p class="errmsgs">The following errors occurred:</p> <ul class="statusmsg">
luci/cluster/resource-form-macros +11 -12
@@ -102,8 +102,7 @@ <strong class="reshdr">Select a Resource Type</strong> </p> - <p class="reshdr"> - <form> + <form> <select onChange="swap_div_elem(this.form.parentNode, this.options[this.selectedIndex].value);"> <option name="blank" value="blank" checked>
@@ -128,8 +127,7 @@ <option name="SAPDatabase" value="SAPDatabase">SAP Database</option> <option name="SAPInstance" value="SAPInstance">SAP Instance</option> </select> - </form> - </p> + </form> <div name="invisible" class="invisible"> <div name="blank"> </div>
@@ -155,9 +153,10 @@ <div metal:define-macro="service-compose-macro"> <p class="reshdr"> <strong class="reshdr">Add a new local resource</strong> - <form> + </p> + <form> <select onChange="swap_div_elem(this.form.parentNode, - this.options[this.selectedIndex].value);"> + this.options[this.selectedIndex].value)"> <option checked="checked">Select a resource type</option> <option name="IP" value="IP">IP address</option> <option name="FS" value="FS">File system</option>
@@ -177,20 +176,21 @@ <option name="SAPDatabase" value="SAPDatabase">SAP Database</option> <option name="SAPInstance" value="SAPInstance">SAP Instance</option> </select> - </form> - </p> + </form> <p style="margin-left: +5em;margin-top:1em;"><strong>or</strong></p> <p class="reshdr"> <strong class="reshdr">Use an existing global resource</strong> <br/> - <form> + </p> + + <form> <input type="hidden" name="parent_uuid" value="" /> <input type="hidden" name="uuid" value="" /> <input type="hidden" name="tree_level" value="" /> <select id="gres_chooser" onChange="swap_in_global_res('global_resources_block', this, - this.form.parentNode, this.form);"> + this.form.parentNode, this.form)"> <option checked="checked">Select a resource name</option> <tal:block tal:repeat="gres global_resources">
@@ -200,8 +200,7 @@ tal:content="python: gres['name'] + ' (' + gres['type'].split(':')[0] + ')'" /> </tal:block> </select> - </form> - </p> + </form> <div name="invisible" class="invisible"> <div name=""> </div>
luci/cluster/resource_form_handlers.js +3 -3
@@ -69,14 +69,14 @@ var divs = container.getElementsByTagName('div'); for (var i = 0 ; i < divs.length ; i++) { - if (!swap_in_elem && divs[i].getAttribute('name') == swap_in_name) { + if (divs[i].getAttribute('name') == swap_in_name) { swap_in_elem = divs[i]; break; } } - if (!swap_in_elem) + if (!swap_in_elem) { return (-1); - + } container.parentNode.replaceChild(swap_in_elem, container); }
luci/cluster/validate_config_qdisk.js +1 -1
@@ -281,7 +281,7 @@ del_img.setAttribute('id', hstr + ':hdel'); del_img.setAttribute('src', '/luci/delete-row.png'); del_img.setAttribute('title', 'delete this row'); - del_img.setAttribute('onClick', 'delete_qdisk_heur(this, document.quorum_partition)'); + del_img.onclick = new Function('delete_qdisk_heur(this, document.quorum_partition)'); del_td.appendChild(del_img); var tr = document.createElement('tr');
luci/cluster/validate_fence.js +58 -36
223 lines not on this page · raw message
luci/homebase/form-macros +28 -27
217 lines not on this page · raw message
luci/homebase/homebase_common.js +89 -54
330 lines not on this page · raw message
luci/homebase/index_html +2 -2
@@ -119,7 +119,7 @@ <div class="retmsgs" id="retmsgsdiv" tal:condition="python:(ret and 'messages' in ret and len(ret['messages']))"> <div class="hbclosebox"> - <a href="javascript:hide_element('retmsgsdiv');"><img src="x.png" class="closeBox" title="dismiss"></a> + <img onclick="hide_element('retmsgsdiv')" src="x.png" class="closeBox" title="dismiss" /> </div> <p class="retmsgs">Status messages:</p> <ul class="statusmsg">
@@ -131,7 +131,7 @@ <div id="errmsgsdiv" class="errmsgs" tal:condition="python:(ret and 'errors' in ret and len(ret['errors']))"> <div class="hbclosebox"> - <a class="hbclosebox" href="javascript:hide_element('errmsgsdiv');"><img src="x.png" class="closeBox" title="dismiss"></a> + <img onclick="hide_element('errmsgsdiv')" src="x.png" class="closeBox" title="dismiss"> </div> <p class="errmsgs">The following errors occurred:</p> <ul class="statusmsg">
luci/homebase/validate_cluster_add.js +18 -10
@@ -1,8 +1,9 @@ function validateForm(form) { - var errors = new Array(); + var errors = []; - if (!form) + if (!form) { return (-1); + } var clustername = form.clustername; if (!clustername || str_is_blank(clustername.value)) {
@@ -18,34 +19,41 @@ if (invalid_chars) { errors.push('The cluster name you gave contains the following invalid characters: "' + invalid_chars + '".'); set_form_err(form.clustername); - } else + } else { clr_form_err(form.clustername); + } } } var added_storage = validate_systems(form, errors); - if (error_dialog(errors)) + if (error_dialog(errors)) { return (-1); + } - if (!added_storage || added_storage.length < 1) + if (!added_storage || added_storage.length < 1) { errors.push('You have not added any cluster nodes.'); + } - if (error_dialog(errors)) + if (error_dialog(errors)) { return (-1); + } var view_certs = document.getElementById('view_certs'); if (!view_certs || !view_certs.checked) { var confirm_str = ''; - if (form.addnode) + if (form.addnode) { confirm_str = 'Add ' + (added_storage.length > 1 ? 'these nodes' : 'this node') + ' to the \"' + clustername + '\" cluster?'; - else + } else { confirm_str = 'Add the cluster \"' + clustername + '\" to the Luci management interface?'; + } - if (confirm(confirm_str)) + if (confirm(confirm_str)) { form.submit(); - } else + } + } else { form.submit(); + } return (0); }
luci/homebase/validate_cluster_add_initial.js +11 -5
@@ -1,22 +1,28 @@ function validateForm(form) { - var errors = new Array(); + var errors = []; - if (!form) + if (!form) { return (-1); + } var added_storage = validate_systems(form, errors); - if (error_dialog(errors)) + if (error_dialog(errors)) { return (-1); + } - if (!added_storage || added_storage.length < 1) + if (!added_storage || added_storage.length < 1) { errors.push('You have not added any cluster nodes.'); + } - if (error_dialog(errors)) + if (error_dialog(errors)) { return (-1); + } if (confirm('Retrieve cluster information from ' + added_storage[0] + '?')) + { form.submit(); + } return (0); }
luci/homebase/validate_perm.js +23 -13
@@ -1,48 +1,58 @@ function validateForm(form) { - var errors = new Array(); + var errors = []; - if (!form || !form.userList) + if (!form || !form.userList) { return (-1); + } var userIdx = form.userList.selectedIndex; - if (userIdx < 0 || !form.userList.options[userIdx].value) + if (userIdx < 0 || !form.userList.options[userIdx].value) { errors.push('You have not selected a valid user.'); + } - if (error_dialog(errors)) + if (error_dialog(errors)) { return (-1); + } var username = form.userList.options[userIdx].value; - var selected_clusters = new Array(); - var selected_storage = new Array(); + var selected_clusters = []; + var selected_storage = []; - if (!form) + if (!form) { return (-1); + } var num_clusters = document.getElementById('numClusters').value; for (var i = 0 ; i < num_clusters ; i++) { var element = document.getElementById('__CLUSTER' + i); - if (!element || !element.value || !element.checked) + if (!element || !element.value || !element.checked) { continue; + } selected_clusters.push(element.value); } var num_storage = document.getElementById('numStorage').value; for (var i = 0 ; i < num_storage ; i++) { var element = document.getElementById('__SYSTEM' + i); - if (!element || !element.value || !element.checked) + if (!element || !element.value || !element.checked) { continue; + } selected_storage.push(element.value); } - if (error_dialog(errors)) + if (error_dialog(errors)) { return (-1); + } - if (selected_clusters.length + selected_storage.length < 1) + var confirm_str = ''; + if (selected_clusters.length + selected_storage.length < 1) { confirm_str = 'Remove all permissions for ' + username + '?'; - else + } else { confirm_str = 'Modify permissions for ' + username + '?'; + } - if (confirm(confirm_str)) + if (confirm(confirm_str)) { form.submit(); + } return (0); }
luci/homebase/validate_sys_add.js +5 -3
@@ -1,12 +1,14 @@ function validateForm(form) { - var errors = new Array(); + var errors = []; - if (!form) + if (!form) { return (-1); + } var added_storage = validate_systems(form, errors); - if (error_dialog(errors)) + if (error_dialog(errors)) { return (-1); + } if (added_storage.length > 0 && confirm("Do you really want to add the following Storage Systems:\n" + added_storage.join('\n')))
luci/homebase/validate_sys_remove.js +28 -16
93 lines not on this page · raw message
luci/homebase/validate_user_add.js +10 -4
@@ -1,8 +1,9 @@ function validateForm(form) { - var errors = new Array() + var errors = []; - if (!form) + if (!form) { return (-1); + } if (!form.newUserName || !form.newUserName.value) { errors.push('You did not enter a user name.');
@@ -12,8 +13,9 @@ if (invalid) { errors.push('The user name you specified contains the following invalid characters: "' + invalid + '"'); set_form_err(form.newUserName); - } else + } else { clr_form_err(form.newUserName); + } } if (!form.newPassword || !form.newPassword.value) {
@@ -43,9 +45,13 @@ } } - if (error_dialog(errors)) + if (error_dialog(errors)) { return (-1); + } + if (confirm('Do you really want to add the user \"' + form.newUserName.value + '\"?')) + { form.submit(); + } return (0); }
luci/homebase/validate_user_del.js +6 -3
@@ -1,8 +1,9 @@ function validateForm(form) { - var errors = new Array(); + var errors = []; - if (!form || !form.deluserId) + if (!form || !form.deluserId) { return (-1); + } var userIdx = form.deluserId.selectedIndex; if (userIdx <= 0 ||
@@ -13,8 +14,10 @@ return (-1); } - if (error_dialog(errors)) + if (error_dialog(errors)) { return (-1); + } + if (confirm('Do you really want to remove the user \"' + form.deluserId.options[userIdx].value + '\"?')) {