Store batch start in advanced search #32781

This commit is contained in:
Nicolas Demonte 2020-04-07 18:49:40 +02:00
parent ba23189791
commit 3862c4e497
1 changed files with 6 additions and 0 deletions

View File

@ -118,6 +118,11 @@ function get_history_parameter(name, default_value) {
$.querywidget.runQuery = function (query) {
orig_query = query;
var batch_start = get_history_parameter('batch_start', '');
if (batch_start) {
query += '&' + batch_start;
}
if ($('#table-batchSize').val()) {
query += '&table-batchSize=' + $('#table-batchSize').val();
}
@ -147,6 +152,7 @@ function get_history_parameter(name, default_value) {
$.querywidget.updateBatchLinks = function (query, query_extra_columns) {
$('a.batch-link').click(function() {
var own_query = query + '&' + $(this).data('query');
store_history_parameter('batch_start', $(this).data('query'));
if (query_extra_columns) {
own_query += '&table-extra-columns=' + query_extra_columns;
}