summaryrefslogtreecommitdiffstats
path: root/install/static/group.js
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2010-11-15 11:10:55 -0600
committerEndi Sukma Dewata <edewata@redhat.com>2010-11-15 12:48:45 -0500
commit9c502641b5f7bf613eb9dbd4be21fbaf92312267 (patch)
tree9421ac0faa0dd3bbd2dac71c6b0a4a94ec3fd6b1 /install/static/group.js
parent629e9520e0b5ce1ae6138d4e2c69ac52927c044a (diff)
downloadfreeipa-9c502641b5f7bf613eb9dbd4be21fbaf92312267.tar.gz
freeipa-9c502641b5f7bf613eb9dbd4be21fbaf92312267.tar.xz
freeipa-9c502641b5f7bf613eb9dbd4be21fbaf92312267.zip
HBAC details page enhancement
The HBAC details page has been enhanced to support Undo and Reset operations. The functionality is implemented in the base widget class so the behavior will be more consistent across widgets. A <span> tag now used to define the field boundary in the HTML doc. The tag contains the visual representation of the field which include the input tag and optionally the undo link. The Update method on HBAC details page has been modified so that it executes several operations using a batch command. The operations being executed depends on the changes made to the fields. These operations may include: - removing access time if access time is changed to any time - removing memberships if member category is changed to all - modifying rule attributes if description or rule type is changed - enabling/disabling the rule if rule status is changed The behavior of the Add & Remove buttons also has been changed such that it adjust the category attribute properly in addition to adding the memberships using batch command. For example, if category is initially set to all, adding a new member will also change the category to empty. The ipa_command have been modified to store the on_success and on_error handlers as properties. When the command is executed as a part of batch operation, the result of each command will be passed to the appropriate handler. The unit tests and test data have been updated as well.
Diffstat (limited to 'install/static/group.js')
-rw-r--r--install/static/group.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/install/static/group.js b/install/static/group.js
index 2358cf1f..f94a7dea 100644
--- a/install/static/group.js
+++ b/install/static/group.js
@@ -57,10 +57,10 @@ function ipa_group_add_dialog(spec) {
this.superior_init();
- this.add_field(ipa_text_widget({name:'cn', label:'Name'}));
- this.add_field(ipa_text_widget({name:'description', label:'Description'}));
- this.add_field(ipa_checkbox_widget({name:'posix', label:'Is this a POSIX group?'}));
- this.add_field(ipa_text_widget({name:'gidnumber', label:'GID'}));
+ this.add_field(ipa_text_widget({name:'cn', label:'Name', undo: false}));
+ this.add_field(ipa_text_widget({name:'description', label:'Description', undo: false}));
+ this.add_field(ipa_checkbox_widget({name:'posix', label:'Is this a POSIX group?', undo: false}));
+ this.add_field(ipa_text_widget({name:'gidnumber', label:'GID', undo: false}));
};
return that;