summaryrefslogtreecommitdiffstats
path: root/install/ui/search.js
diff options
context:
space:
mode:
authorPetr Voborník <pvoborni@redhat.com>2012-01-24 15:31:18 +0100
committerEndi S. Dewata <edewata@redhat.com>2012-01-31 08:39:12 -0600
commit191f05e4774a2b62f43f1445c6e08e9057539f98 (patch)
tree527ae42f75d6925f7fa5e8a1e6d217bc2d6268e5 /install/ui/search.js
parent1f3d8003f7ccb7793be6452942f62d10433e7f27 (diff)
downloadfreeipa.git-191f05e4774a2b62f43f1445c6e08e9057539f98.tar.gz
freeipa.git-191f05e4774a2b62f43f1445c6e08e9057539f98.tar.xz
freeipa.git-191f05e4774a2b62f43f1445c6e08e9057539f98.zip
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
Diffstat (limited to 'install/ui/search.js')
-rw-r--r--install/ui/search.js4
1 files changed, 3 insertions, 1 deletions
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;