diff options
author | Adam Young <ayoung@redhat.com> | 2011-01-24 22:21:31 -0500 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2011-01-25 13:11:43 -0500 |
commit | 32c74fccef04042f0339508aa5fe1248a0e4a12f (patch) | |
tree | ae53767f444e8ded3907361522b2c87225825f5f /install/ui/aci.js | |
parent | 485e4a097ff8c96d3b36cb9c6a53b782f6b8e0cf (diff) | |
download | freeipa-32c74fccef04042f0339508aa5fe1248a0e4a12f.tar.gz freeipa-32c74fccef04042f0339508aa5fe1248a0e4a12f.tar.xz freeipa-32c74fccef04042f0339508aa5fe1248a0e4a12f.zip |
aci attribute table two columns
Diffstat (limited to 'install/ui/aci.js')
-rw-r--r-- | install/ui/aci.js | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/install/ui/aci.js b/install/ui/aci.js index 85cfcaa85..eb941cb97 100644 --- a/install/ui/aci.js +++ b/install/ui/aci.js @@ -42,6 +42,7 @@ IPA.populate_attribute_table = function (table, entity){ id:'aciattr-'+aciattrs[a].toLowerCase(), "class":'aci-attribute' })); + td = $('<td/>').appendTo(aci_tr); td.append($('<label/>',{ text:aciattrs[a].toLowerCase()})); } @@ -58,25 +59,23 @@ IPA.attribute_table_widget= function (spec){ var dd = $('<dd/>').appendTo(container); table = $('<table/>',{ id:id, - 'class':'search-table'}). + 'class':'search-table aci-attribute-table'}). append('<thead/>'). - append($('<tbody/>',{ - style:"height:30em; overflow:auto;" - })). + append($('<tbody/>')). appendTo(dd); - $('<tr></tr>'). - append($('<th/>',{ - style:"height:2em; vertical-align:bottom;", - html:$('<input/>',{ - type: "checkbox", - click: function(){ - $('.aci-attribute'). - attr('checked', $(this).attr('checked')); - }}). - after('<label>Attribute</lable>') - })). - appendTo($('thead', table)); + var tr = $('<tr></tr>').appendTo($('thead', table)); + tr.append($('<th/>',{ + style:"height:2em; vertical-align:bottom;", + html:$('<input/>',{ + type: "checkbox", + click: function(){ + $('.aci-attribute'). + attr('checked', $(this).attr('checked')); + }}) + })). + append('<th class="aci-attribute-column">Attribute</th>'); + IPA.populate_attribute_table(table, object_type); }; |