mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-23 07:33:27 -06:00
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>
This commit is contained in:
parent
34d644ebdf
commit
65bde3ecd7
@ -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+'"]';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user