diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2014-01-16 13:54:03 +0100 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2014-01-16 13:54:03 +0100 |
commit | b94e18dece5d7788a8796ec9ab0147adfa51ba7e (patch) | |
tree | b528283d2efd22f231d6a7f10b0dfa4e3ba6210f | |
parent | fd3f7b4019d924bc8fd3b73c74ced08326113f59 (diff) | |
download | freeipa-datetime-ui.tar.gz freeipa-datetime-ui.tar.xz freeipa-datetime-ui.zip |
Use unique ids for checkboxesdatetime-ui
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.
-rw-r--r-- | install/ui/src/freeipa/widget.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/install/ui/src/freeipa/widget.js b/install/ui/src/freeipa/widget.js index 81db75e57..6ee61c658 100644 --- a/install/ui/src/freeipa/widget.js +++ b/install/ui/src/freeipa/widget.js @@ -1201,10 +1201,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+'"]'; } |