From 7529a79f4b17a214c47a0f34e1617654bfd20ab0 Mon Sep 17 00:00:00 2001 From: Endi Sukma Dewata Date: Fri, 9 Dec 2011 18:12:25 -0600 Subject: Enabled paging on self-service permissions and delegations. Paging has been enabled on self-service permissions and delegations list pages. The search facet's get_pkeys() has been fixed to handle non-array value. New test data files have been added as well. Ticket #2092 --- install/ui/aci.js | 2 - install/ui/search.js | 7 ++- install/ui/test/data/delegation_find_pkeys.json | 14 +++++ install/ui/test/data/delegation_get_records.json | 30 ++++++++++ install/ui/test/data/selfservice_find_pkeys.json | 17 ++++++ install/ui/test/data/selfservice_get_records.json | 69 +++++++++++++++++++++++ 6 files changed, 135 insertions(+), 4 deletions(-) create mode 100644 install/ui/test/data/delegation_find_pkeys.json create mode 100644 install/ui/test/data/delegation_get_records.json create mode 100644 install/ui/test/data/selfservice_find_pkeys.json create mode 100644 install/ui/test/data/selfservice_get_records.json diff --git a/install/ui/aci.js b/install/ui/aci.js index badc7953..fc72b519 100644 --- a/install/ui/aci.js +++ b/install/ui/aci.js @@ -327,7 +327,6 @@ IPA.aci.selfservice_entity = function(spec) { that.entity_init(); that.builder.search_facet({ - pagination: false, columns: [ 'aciname' ] }). details_facet({ @@ -371,7 +370,6 @@ IPA.aci.delegation_entity = function(spec) { that.entity_init(); that.builder.search_facet({ - pagination: false, columns: [ 'aciname' ] }). details_facet({ diff --git a/install/ui/search.js b/install/ui/search.js index e541833c..f82bf0d1 100644 --- a/install/ui/search.js +++ b/install/ui/search.js @@ -162,8 +162,11 @@ IPA.search_facet = function(spec) { var pkeys = []; for (var i=0; i