summaryrefslogtreecommitdiffstats
path: root/install/ui/src/freeipa/search.js
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2014-01-15 18:01:02 +0100
committerMartin Kosek <mkosek@redhat.com>2014-01-21 12:24:54 +0100
commit622f9ab11f12187c4453f9b7c748a6c9865591ed (patch)
treebe6552aec63f4560c6d4ab717567feb40538ffae /install/ui/src/freeipa/search.js
parent3e0ae972685aefa20ec619b17a7c2b7f7c2f50d9 (diff)
downloadfreeipa-622f9ab11f12187c4453f9b7c748a6c9865591ed.tar.gz
freeipa-622f9ab11f12187c4453f9b7c748a6c9865591ed.tar.xz
freeipa-622f9ab11f12187c4453f9b7c748a6c9865591ed.zip
Trust domains Web UI
Add Web UI counterpart of following CLI commands: * trust-fetch-domains Refresh list of the domains associated with the trust * trustdomain-del Remove infromation about the domain associated with the trust. * trustdomain-disable Disable use of IPA resources by the domain of the trust * trustdomain-enable Allow use of IPA resources by the domain of the trust * trustdomain-find Search domains of the trust https://fedorahosted.org/freeipa/ticket/4119
Diffstat (limited to 'install/ui/src/freeipa/search.js')
-rw-r--r--install/ui/src/freeipa/search.js11
1 files changed, 7 insertions, 4 deletions
diff --git a/install/ui/src/freeipa/search.js b/install/ui/src/freeipa/search.js
index 680f0268c..3c2fca715 100644
--- a/install/ui/src/freeipa/search.js
+++ b/install/ui/src/freeipa/search.js
@@ -470,20 +470,23 @@ IPA.batch_items_action = function(spec) {
that.execute_action = function(facet, on_success, on_error) {
var entity = facet.managed_entity;
- var pkeys = facet.get_selected_values();
+ var selected_keys = facet.get_selected_values();
+ var pkeys = facet.get_pkeys();
+ if (!pkeys[0]) pkeys = []; // correction for search facet
that.batch = IPA.batch_command({
name: entity.name + '_batch_'+ that.method,
on_success: that.get_on_success(facet, on_success)
});
- for (var i=0; i<pkeys.length; i++) {
- var pkey = pkeys[i];
+ for (var i=0; i<selected_keys.length; i++) {
+ var item_keys = pkeys.splice(0);
+ item_keys.push(selected_keys[i]);
var command = IPA.command({
entity: entity.name,
method: that.method,
- args: [pkey]
+ args: item_keys
});
that.batch.add_command(command);