From 7c0c39581c567c2c5bd92f9396b6fd99a2b8a6f8 Mon Sep 17 00:00:00 2001 From: Endi Sukma Dewata Date: Tue, 17 Jan 2012 15:50:49 -0600 Subject: Enabled paging on automount keys. The automount keys search facet has been modified to support paging. Since the automountkey-find command doesn't support --pkey-only option, the facet is configured such that during a refresh operation it will retrieve all entries (including the key and info attributes) and then display only the ones that are supposed to be visible in the current page. Ticket #2093 --- install/ui/association.js | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'install/ui/association.js') diff --git a/install/ui/association.js b/install/ui/association.js index ed274eb4..2fbdb7dd 100644 --- a/install/ui/association.js +++ b/install/ui/association.js @@ -998,8 +998,21 @@ IPA.association_facet = function (spec) { dialog.open(that.container); }; - that.get_pkeys = function(data) { - return data.result.result[that.get_attribute_name()] || []; + that.get_records_map = function(data) { + + var records_map = $.ordered_map(); + var association_name = that.get_attribute_name(); + var pkey_name = that.managed_entity.metadata.primary_key; + + var pkeys = data.result.result[association_name]; + for (var i=0; pkeys && i