summaryrefslogtreecommitdiffstats
path: root/install/static/sudocmd.js
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2010-11-19 23:52:33 -0600
committerAdam Young <ayoung@redhat.com>2010-11-30 14:58:30 -0500
commitc90bff232dcc9dbab2cd6d5a1bb482cb1c5f16f9 (patch)
treee270c50dbff183e94590bd20d0d8e42100abc390 /install/static/sudocmd.js
parentd644d17adf117321747db1e4e22a771fbea3b09e (diff)
downloadfreeipa-c90bff232dcc9dbab2cd6d5a1bb482cb1c5f16f9.tar.gz
freeipa-c90bff232dcc9dbab2cd6d5a1bb482cb1c5f16f9.tar.xz
freeipa-c90bff232dcc9dbab2cd6d5a1bb482cb1c5f16f9.zip
Multicolumn association facet
The association facet has been modified to support multiple columns. By default the facet will have one column which is the primary key of the associated object (e.g. username of a group member), so the existing code will work like before. Other fields (e.g. user's full name) can be added by subclassing the ipa_association_facet class and specifying the additional columns to display. These additional fields will be retrieved using a batch operation. Previously a single association facet instance will be used for all associations in an entity. Now each association will have its own association facet. This way each association facet can be customized differently as needed. The <entity>-enroll URL parameter has been removed because it's no longer needed. The ipa_entity.create_association_facets() is provided to generate the default association facets with one column for the primary key. The column click handler has been moved out of ipa_column to provide more flexibility for customization. The get_action_panel() and get_client_area() have been modified to search within the entity's container. The group entity has been fully converted to use the new UI framework. Association facets that have been modified to use multiple columns are: - User Group's member_user - HBAC Service Group's member_hbacsvc - SUDO Command Group's member_sudocmd - Service's managedby_host New test data files have been added. Unit tests have been updated.
Diffstat (limited to 'install/static/sudocmd.js')
-rwxr-xr-xinstall/static/sudocmd.js14
1 files changed, 3 insertions, 11 deletions
diff --git a/install/static/sudocmd.js b/install/static/sudocmd.js
index b4492c25..0e335627 100755
--- a/install/static/sudocmd.js
+++ b/install/static/sudocmd.js
@@ -65,10 +65,10 @@ function ipa_sudocmd_add_dialog(spec) {
that.init = function() {
- this.superior_init();
+ that.superior_init();
- this.add_field(ipa_text_widget({name:'sudocmd', label:'Command', undo: false}));
- this.add_field(ipa_text_widget({name:'description', label:'Description', undo: false}));
+ that.add_field(ipa_text_widget({name:'sudocmd', label:'Command', undo: false}));
+ that.add_field(ipa_text_widget({name:'description', label:'Description', undo: false}));
};
return that;
@@ -80,10 +80,6 @@ function ipa_sudocmd_search_facet(spec) {
var that = ipa_search_facet(spec);
- that.get_action_panel = function() {
- return $('#sudorule .action-panel');
- };
-
that.init = function() {
that.create_column({name:'sudocmd', label:'Command', primary_key: true});
@@ -153,10 +149,6 @@ function ipa_sudocmd_details_facet(spec) {
that.superior_create = that.superior('create');
that.superior_setup = that.superior('setup');
- that.get_action_panel = function() {
- return $('#sudorule .action-panel');
- };
-
that.init = function() {
var section = ipa_details_list_section({