summaryrefslogtreecommitdiffstats
path: root/install/ui
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2014-01-16 13:54:03 +0100
committerPetr Viktorin <pviktori@redhat.com>2014-03-13 11:10:42 +0100
commit65bde3ecd7dc0b2d51fd7c3faf49edbe662151e2 (patch)
treefd3de5e79a3f7dbb8d793b2941fa1453c3a49239 /install/ui
parent34d644ebdf9f887441ef82d71b4f101206d897a8 (diff)
downloadfreeipa-65bde3ecd7dc0b2d51fd7c3faf49edbe662151e2.tar.gz
freeipa-65bde3ecd7dc0b2d51fd7c3faf49edbe662151e2.tar.xz
freeipa-65bde3ecd7dc0b2d51fd7c3faf49edbe662151e2.zip
webui: use unique ids for checkboxes
Checkboxes have not used unique ids across the whole UI. It broke checking by clicking on label for later displayed instances. It became serious problem when rcue introduced new checkbox styles with 'label clicking' as default check method. https://fedorahosted.org/freeipa/ticket/3904 Reviewed-By: Adam Misnyovszki <amisnyov@redhat.com>
Diffstat (limited to 'install/ui')
-rw-r--r--install/ui/src/freeipa/widget.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/install/ui/src/freeipa/widget.js b/install/ui/src/freeipa/widget.js
index b3ea3a838..b642cee02 100644
--- a/install/ui/src/freeipa/widget.js
+++ b/install/ui/src/freeipa/widget.js
@@ -1199,10 +1199,7 @@ IPA.option_widget_base = function(spec, that) {
that.get_input_name = function() {
if (!that._input_name) {
- var name = that.name;
- if (that.input_type === 'radio') {
- name = IPA.html_util.get_next_id(name);
- }
+ var name = IPA.html_util.get_next_id(that.name);
that._input_name = name;
that._selector = 'input[name="'+name+'"]';
}