summaryrefslogtreecommitdiffstats
path: root/install/ui/src/freeipa/aci.js
diff options
context:
space:
mode:
Diffstat (limited to 'install/ui/src/freeipa/aci.js')
-rw-r--r--install/ui/src/freeipa/aci.js23
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,