From 1a1a7b9107ce08d17270247834a20b0b432bd15c Mon Sep 17 00:00:00 2001 From: iglocska Date: Wed, 13 Jan 2021 14:23:11 +0100 Subject: [PATCH] fix: [index] search fixed - correctly persist url parameters when searching --- .../genericElements/ListTopBar/group_search.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/templates/element/genericElements/ListTopBar/group_search.php b/templates/element/genericElements/ListTopBar/group_search.php index cf74859..1b963f2 100644 --- a/templates/element/genericElements/ListTopBar/group_search.php +++ b/templates/element/genericElements/ListTopBar/group_search.php @@ -43,14 +43,23 @@ $(document).ready(function() { var controller = 'request->getParam('controller') ?>'; var action = 'request->getParam('action') ?>'; + var additionalUrlParams = ''; + var randomValue = ''; $('#quickFilterButton-' + randomValue).click(function() { - var url = '/' + controller + '/' + action + '?quickFilter=' + encodeURIComponent($('#quickFilterField-').val()); + var url = '/' + controller + '/' + action + additionalUrlParams + '?quickFilter=' + encodeURIComponent($('#quickFilterField-').val()); executePagination(randomValue, url); }); $('#quickFilterField').on('keypress', function (e) { if(e.which === 13) { - var url = '/' + controller + '/' + action + '?quickFilter=' + encodeURIComponent($('#quickFilterField-').val()); + var url = '/' + controller + '/' + action + additionalUrlParams + '?quickFilter=' + encodeURIComponent($('#quickFilterField-').val()); executePagination(randomValue, url); } });