diff options
author | Endi S. Dewata <edewata@redhat.com> | 2010-12-06 13:51:49 -0600 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2010-12-06 20:09:38 -0500 |
commit | 95ea68a2175cc1bec0dbb901311e40f55b692c42 (patch) | |
tree | 774f26246ffdc803c082b5222bdfe1de7358aa21 /install/static/sudocmdgroup.js | |
parent | 69e77212ea428f79742b9ff0452ef19d74cc76d4 (diff) | |
download | freeipa.git-95ea68a2175cc1bec0dbb901311e40f55b692c42.tar.gz freeipa.git-95ea68a2175cc1bec0dbb901311e40f55b692c42.tar.xz freeipa.git-95ea68a2175cc1bec0dbb901311e40f55b692c42.zip |
Column i18n
The ipa_column has been modified to get the label from metadata
during initialization. The ipa_table_widget has been modified to
initialize the columns. Hard-coded labels have been removed from
column declarations.
The ipa_adder_dialog has been modified to execute a search at the
end of setup.
Diffstat (limited to 'install/static/sudocmdgroup.js')
-rwxr-xr-x | install/static/sudocmdgroup.js | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/install/static/sudocmdgroup.js b/install/static/sudocmdgroup.js index 01e8007b..c3daf9fb 100755 --- a/install/static/sudocmdgroup.js +++ b/install/static/sudocmdgroup.js @@ -95,8 +95,8 @@ function ipa_sudocmdgroup_search_facet(spec) { that.init = function() { - that.create_column({name:'cn', label:'Group', primary_key: true}); - that.create_column({name:'description', label:'Description'}); + that.create_column({name:'cn', primary_key: true}); + that.create_column({name:'description'}); that.search_facet_init(); }; @@ -152,8 +152,8 @@ function ipa_sudocmdgroup_details_facet(spec) { }); that.add_section(section); - section.create_field({ 'name': 'cn', 'label': 'Name' }); - section.create_field({ 'name': 'description', 'label': 'Description' }); + section.create_field({'name': 'cn'}); + section.create_field({'name': 'description'}); that.details_facet_init(); }; @@ -171,7 +171,6 @@ function ipa_sudocmdgroup_member_sudocmd_facet(spec) { var column = that.create_column({ name: 'sudocmd', - label: 'Command', primary_key: true, width: '150px' }); @@ -198,21 +197,18 @@ function ipa_sudocmdgroup_member_sudocmd_facet(spec) { }; that.create_column({ - name: 'description', label: 'Description', width: '150px' }); that.create_adder_column({ name: 'sudocmd', - label: 'Command', primary_key: true, width: '100px' }); that.create_adder_column({ name: 'description', - label: 'Description', width: '100px' }); |