mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Added paging on search facet.
The search facet has been modified to support paging on most entities using the --pkey-only option to get the primary keys and a batch command to get the complete records. Paging on DNS records is not supported because a record may appear as multiple rows. The following entities do not have --pkey-only option: Automount Key, Self-Service Permissions, Delegation. The search and association facet have been refactored to reuse the common code from the table facet base class. Ticket #981
This commit is contained in:
@@ -1305,6 +1305,7 @@ IPA.table_widget = function (spec) {
|
||||
};
|
||||
|
||||
that.add_column = function(column) {
|
||||
column.entity = that.entity;
|
||||
that.columns.put(column.name, column);
|
||||
};
|
||||
|
||||
@@ -1566,13 +1567,12 @@ IPA.table_widget = function (spec) {
|
||||
|
||||
that.empty();
|
||||
|
||||
that.values = result[that.name];
|
||||
if (that.values) {
|
||||
for (var i=0; i<that.values.length; i++) {
|
||||
var record = that.get_record(result, i);
|
||||
that.add_record(record);
|
||||
}
|
||||
that.values = result[that.name] || [];
|
||||
for (var i=0; i<that.values.length; i++) {
|
||||
var record = that.get_record(result, i);
|
||||
that.add_record(record);
|
||||
}
|
||||
|
||||
that.unselect_all();
|
||||
};
|
||||
|
||||
@@ -1617,7 +1617,7 @@ IPA.table_widget = function (spec) {
|
||||
|
||||
if (values instanceof Array){
|
||||
record[name] = values[index];
|
||||
}else{
|
||||
} else {
|
||||
record[name] = values;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user