diff options
author | Endi Sukma Dewata <edewata@redhat.com> | 2012-01-17 15:50:49 -0600 |
---|---|---|
committer | Petr VobornÃk <pvoborni@redhat.com> | 2012-01-23 15:38:25 +0100 |
commit | 7c0c39581c567c2c5bd92f9396b6fd99a2b8a6f8 (patch) | |
tree | 6233a8cf7b0df9b21a67c23bb572d6c59fc81ba0 /install/ui/automount.js | |
parent | ae2e49a22277a17269833ec13fa657fdc2547b36 (diff) | |
download | freeipa-7c0c39581c567c2c5bd92f9396b6fd99a2b8a6f8.tar.gz freeipa-7c0c39581c567c2c5bd92f9396b6fd99a2b8a6f8.tar.xz freeipa-7c0c39581c567c2c5bd92f9396b6fd99a2b8a6f8.zip |
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
Diffstat (limited to 'install/ui/automount.js')
-rw-r--r-- | install/ui/automount.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/install/ui/automount.js b/install/ui/automount.js index 13d7bfa2a..80f5e1438 100644 --- a/install/ui/automount.js +++ b/install/ui/automount.js @@ -74,7 +74,7 @@ IPA.automount.map_entity = function(spec) { factory: IPA.automount.key_search_facet, facet_group: 'automountkey', nested_entity: 'automountkey', - pagination: false, + search_all_entries: true, label: IPA.metadata.objects.automountkey.label, name: 'keys', columns: [ @@ -237,9 +237,13 @@ IPA.automount_key_column = function(spec) { var that = IPA.column(spec); that.setup = function(container, record) { + container.empty(); + var key = record.automountkey; + if (key instanceof Array) key = key[0]; var info = record.automountinformation; + if (info instanceof Array) info = info[0]; $('<a/>', { href: '#'+key, |