diff --git a/js/src/navigation.js b/js/src/navigation.js index d2e7d59ff72..2ff04d07b18 100644 --- a/js/src/navigation.js +++ b/js/src/navigation.js @@ -1066,14 +1066,12 @@ Navigation.selectCurrentDatabase = function () { Navigation.treePagination = function ($this) { var $msgbox = Functions.ajaxShowMessage(); var isDbSelector = $this.closest('div.pageselector').is('.dbselector'); - var url; - var params; + var url = 'index.php?route=/navigation'; + var params = 'ajax_request=true'; if ($this[0].tagName === 'A') { - url = $this.attr('href'); - params = 'ajax_request=true'; + params += CommonParams.get('arg_separator') + $this.getPostData(); } else { // tagName === 'SELECT' - url = 'index.php?route=/navigation'; - params = $this.closest('form').serialize() + CommonParams.get('arg_separator') + 'ajax_request=true'; + params += CommonParams.get('arg_separator') + $this.closest('form').serialize(); } var searchClause = Navigation.FastFilter.getSearchClause(); if (searchClause) { diff --git a/libraries/classes/Html/Generator.php b/libraries/classes/Html/Generator.php index 0e5667200f3..f8d7c6f2e3d 100644 --- a/libraries/classes/Html/Generator.php +++ b/libraries/classes/Html/Generator.php @@ -1259,13 +1259,15 @@ public static function getListNavigator( $_url_params[$name] = 0; $list_navigator_html .= '' . $caption1 - . ''; + . '" data-post="' + . Url::getCommon($_url_params, '', false) + . '">' . $caption1 . ''; $_url_params[$name] = $pos - $max_count; - $list_navigator_html .= ' ' - . $caption2 . ''; + $list_navigator_html .= ' ' . $caption2 . ''; } $list_navigator_html .= '
' . $caption3 - . ''; + . '" data-post="' + . Url::getCommon($_url_params, '', false) + . '" >' . $caption3 . ''; $_url_params[$name] = floor($count / $max_count) * $max_count; if ($_url_params[$name] == $count) { $_url_params[$name] = $count - $max_count; } - $list_navigator_html .= ' ' - . $caption4 . ''; + $list_navigator_html .= ' ' . $caption4 . ''; } $list_navigator_html .= '' . "\n"; }