commit 7e1949639ea8ff64e1d43929054c5d68d89a66c4
Author: Jan Pokorny <jpokorny(a)redhat.com>
Date: Fri Aug 6 20:12:15 2010 +0200
Re: Fix rhbz#620377 - some items not selectable
luci/templates/fence_devices.html | 4 ++--
luci/templates/resource_list.html | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/luci/templates/fence_devices.html b/luci/templates/fence_devices.html
index 0922e1a..0eb589c 100644
--- a/luci/templates/fence_devices.html
+++ b/luci/templates/fence_devices.html
@@ -2744,7 +2744,7 @@ ${fence_unknown(None,0)}
<py:if test="model and len(model.getFenceDevices()) != 0">
<select name="select_div"
onchange="add_fenceinst('${cont_id}',fencedevicetype[this.options[this.selectedIndex].value],this.options[this.selectedIndex].value);">
- <option>-- Select a fence device --</option>
+ <option selected="selected" disabled="disabled">-- Select a
fence device --</option>
<option disabled="disabled">Existing fence devices</option>
<py:for each="fencedev in model.getFenceDevices()">
<script type="text/javascript">
@@ -2761,7 +2761,7 @@ ${fence_unknown(None,0)}
<select name="select_div"
onchange="swap_fence_form(this.options[this.selectedIndex].value,
'${cont_id}')"
py:with="cluster_version = tmpl_context.cluster.get_version()" >
- <option>-- Select a fence device --</option>
+ <option selected="selected" disabled="disabled">-- Select a
fence device --</option>
<option name="fence_apc" value="fence_apc">APC Power
Switch</option>
<option name="fence_apc_snmp" value="fence_apc_snmp">APC
Power Switch (SNMP interface)</option>
<option py:if="cluster_version == 2" name="fence_brocade"
value="fence_brocade">Brocade Fabric Switch</option>
diff --git a/luci/templates/resource_list.html b/luci/templates/resource_list.html
index 03071f1..b8f3ec4 100644
--- a/luci/templates/resource_list.html
+++ b/luci/templates/resource_list.html
@@ -1496,7 +1496,7 @@ ${vm_resource(None,None,None,0)}
</py:if>
</py:if>
- <option>-- Select a resource type --</option>
+ <option selected="selected" disabled="disabled">-- Select a
resource type --</option>
<option name="apache_resource"
value="apache_resource">Apache</option>
<option name="fs_resource"
value="fs_resource">Filesystem</option>
<py:choose test="cluster_version">
Show replies by date