Store batch start in advanced search #32781
This commit is contained in:
parent
ba23189791
commit
3862c4e497
|
@ -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;
|
||||
}
|
||||
|
|
Reference in New Issue