From 191f05e4774a2b62f43f1445c6e08e9057539f98 Mon Sep 17 00:00:00 2001 From: Petr Voborník Date: Tue, 24 Jan 2012 15:31:18 +0100 Subject: Added paging to DNS record search facet Paging in DNS record search facet was disabled because there was a mismatch between primary keys sent by server and values displayed in the facet. The facet was modified to enable paging. To preserve amount of information which was displayed before, current rows have variable height - they can contain more that one line depending on number of values in the record. Each record has a checkbox and indsname in its first line to distinguish one record from others. Because there is only one checkbox for record, delete command is called with --rem-all option which causes that entire record is removed. Individual values can be deleted in record's details facet. https://fedorahosted.org/freeipa/ticket/2094 --- install/ui/search.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'install/ui/search.js') diff --git a/install/ui/search.js b/install/ui/search.js index 99990528..4f26c040 100644 --- a/install/ui/search.js +++ b/install/ui/search.js @@ -38,6 +38,8 @@ IPA.search_facet = function(spec) { var that = IPA.table_facet(spec); + that.deleter_dialog = spec.deleter_dialog || IPA.search_deleter_dialog; + var init = function() { that.init_table(that.managed_entity); @@ -144,7 +146,7 @@ IPA.search_facet = function(spec) { var dialog = that.managed_entity.get_dialog('remove'); if (!dialog) { - dialog = IPA.search_deleter_dialog(); + dialog = that.deleter_dialog(); } dialog.entity_name = that.managed_entity.name; -- cgit