summaryrefslogtreecommitdiffstats
path: root/install/ui/facet.js
diff options
context:
space:
mode:
authorPetr Voborník <pvoborni@redhat.com>2012-01-25 13:06:15 +0100
committerEndi S. Dewata <edewata@redhat.com>2012-02-01 12:47:46 -0600
commit199d6815d49617b4b438a93ccf99e1e4e32a6221 (patch)
tree4b60c83859682bafbad9ed89fd581313f8c49bff /install/ui/facet.js
parentc00267308e2844b2a345c22df5c045117fcff9a2 (diff)
downloadfreeipa.git-199d6815d49617b4b438a93ccf99e1e4e32a6221.tar.gz
freeipa.git-199d6815d49617b4b438a93ccf99e1e4e32a6221.tar.xz
freeipa.git-199d6815d49617b4b438a93ccf99e1e4e32a6221.zip
Automember UI
New UI for automember. Implemented: * search facet core * rule details facet * attribute_table_widget - new base class for tables which contains multivalued attribute with special add/remove commands * adding/removing conditions in details facet TODO: * label translations * UI for defining default rules https://fedorahosted.org/freeipa/ticket/2195
Diffstat (limited to 'install/ui/facet.js')
-rw-r--r--install/ui/facet.js13
1 files changed, 11 insertions, 2 deletions
diff --git a/install/ui/facet.js b/install/ui/facet.js
index 9821fddc..39478f1a 100644
--- a/install/ui/facet.js
+++ b/install/ui/facet.js
@@ -660,9 +660,9 @@ IPA.table_facet = function(spec) {
return that.managed_entity.name+'_get_records';
};
- that.get_records = function(pkeys, on_success, on_error) {
+ that.create_get_records_command = function(pkeys, on_success, on_error) {
- var batch = IPA.batch_command({
+ var batch = IPA.batch_command({
name: that.get_records_command_name(),
on_success: on_success,
on_error: on_error
@@ -681,6 +681,13 @@ IPA.table_facet = function(spec) {
batch.add_command(command);
}
+ return batch;
+ };
+
+ that.get_records = function(pkeys, on_success, on_error) {
+
+ var batch = that.create_get_records_command(pkeys, on_success, on_error);
+
batch.execute();
};
@@ -766,6 +773,8 @@ IPA.table_facet = function(spec) {
init();
+ that.table_facet_create_get_records_command = that.create_get_records_command;
+
return that;
};