diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2013-10-17 15:36:09 +0200 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2014-01-21 12:04:02 +0100 |
commit | 4ae69b99b22f50b9bc31d60126bb0dc805c7b11b (patch) | |
tree | 57f3dc34c971ef9fa3a8386d4154ba61c277373e /install/ui/src/freeipa/aci.js | |
parent | 9a7e65100c4d193248ef19d5a79300e14c99fabc (diff) | |
download | freeipa-4ae69b99b22f50b9bc31d60126bb0dc805c7b11b.tar.gz freeipa-4ae69b99b22f50b9bc31d60126bb0dc805c7b11b.tar.xz freeipa-4ae69b99b22f50b9bc31d60126bb0dc805c7b11b.zip |
Always create radio and checkbox with label
https://fedorahosted.org/freeipa/ticket/3904
Diffstat (limited to 'install/ui/src/freeipa/aci.js')
-rw-r--r-- | install/ui/src/freeipa/aci.js | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/install/ui/src/freeipa/aci.js b/install/ui/src/freeipa/aci.js index 1326f1b04..b848073b0 100644 --- a/install/ui/src/freeipa/aci.js +++ b/install/ui/src/freeipa/aci.js @@ -510,16 +510,17 @@ IPA.attributes_widget = function(spec) { var tr = $('<tr></tr>').appendTo($('thead', that.table)); + var th = $('<th/>').appendTo(tr); + IPA.standalone_option({ + type: "checkbox", + click: function() { + $('.aci-attribute', that.table). + prop('checked', $(this).prop('checked')); + that.value_changed.notify([], that); + } + }, th); + tr.append($('<th/>', { - html: $('<input/>', { - type: "checkbox", - click: function() { - $('.aci-attribute', that.table). - prop('checked', $(this).prop('checked')); - that.value_changed.notify([], that); - } - }) - })).append($('<th/>', { 'class': 'aci-attribute-column', html: text.get('@i18n:objects.aci.attribute') })); @@ -545,7 +546,7 @@ IPA.attributes_widget = function(spec) { var td = $('<td/>').appendTo(tr); var name = that.get_input_name(); var id = that._option_next_id + name; - td.append($('<input/>',{ + IPA.standalone_option({ id: id, type: 'checkbox', name: name, @@ -554,7 +555,7 @@ IPA.attributes_widget = function(spec) { change: function() { that.value_changed.notify([], that); } - })); + }, td); td = $('<td/>').appendTo(tr); td.append($('<label/>',{ text: value, |