From d6ff3e55d32eb7052834fc878d5a02a0590a6729 Mon Sep 17 00:00:00 2001 From: Stanislav Knot Date: Mon, 26 Mar 2018 17:15:55 +0200 Subject: [PATCH] NO-JIRA browsing messages do not change items per page --- .../artemis-plugin/src/main/webapp/plugin/js/addresses.js | 1 + .../artemis-plugin/src/main/webapp/plugin/js/browse.js | 3 ++- .../artemis-plugin/src/main/webapp/plugin/js/connections.js | 1 + .../artemis-plugin/src/main/webapp/plugin/js/consumers.js | 1 + .../artemis-plugin/src/main/webapp/plugin/js/producers.js | 1 + .../artemis-plugin/src/main/webapp/plugin/js/queues.js | 1 + .../artemis-plugin/src/main/webapp/plugin/js/sessions.js | 1 + 7 files changed, 8 insertions(+), 1 deletion(-) diff --git a/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/addresses.js b/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/addresses.js index 67867b5b68..b7cdab9f2e 100644 --- a/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/addresses.js +++ b/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/addresses.js @@ -193,6 +193,7 @@ var ARTEMIS = (function(ARTEMIS) { } if (parseInt(newVal.pageSize) && newVal !== oldVal && newVal.pageSize !== oldVal.pageSize) { $scope.pagingOptions.currentPage = 1; + $scope.loadTable(); } }, true); diff --git a/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/browse.js b/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/browse.js index a58d9eb2c9..807122f725 100644 --- a/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/browse.js +++ b/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/browse.js @@ -117,7 +117,8 @@ var ARTEMIS = (function(ARTEMIS) { loadTable(); } if (parseInt(newVal.pageSize) && newVal !== oldVal && newVal.pageSize !== oldVal.pageSize) { - $scope.pagingOptions.currentPage = 1; + $scope.pagingOptions.currentPage = 1; + loadTable(); } }, true); $scope.openMessageDialog = function (message) { diff --git a/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/connections.js b/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/connections.js index cde8082fc6..4843968f5c 100644 --- a/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/connections.js +++ b/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/connections.js @@ -230,6 +230,7 @@ var ARTEMIS = (function(ARTEMIS) { } if (parseInt(newVal.pageSize) && newVal !== oldVal && newVal.pageSize !== oldVal.pageSize) { $scope.pagingOptions.currentPage = 1; + $scope.loadTable(); } }, true); diff --git a/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/consumers.js b/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/consumers.js index 00a1c76d61..a90c1c858d 100644 --- a/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/consumers.js +++ b/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/consumers.js @@ -254,6 +254,7 @@ var ARTEMIS = (function(ARTEMIS) { } if (parseInt(newVal.pageSize) && newVal !== oldVal && newVal.pageSize !== oldVal.pageSize) { $scope.pagingOptions.currentPage = 1; + $scope.loadTable(); } }, true); diff --git a/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/producers.js b/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/producers.js index ce198ff68c..d55754ba08 100644 --- a/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/producers.js +++ b/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/producers.js @@ -219,6 +219,7 @@ var ARTEMIS = (function(ARTEMIS) { } if (parseInt(newVal.pageSize) && newVal !== oldVal && newVal.pageSize !== oldVal.pageSize) { $scope.pagingOptions.currentPage = 1; + $scope.loadTable(); } }, true); diff --git a/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/queues.js b/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/queues.js index 9a4e994bc4..15f8bac24a 100644 --- a/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/queues.js +++ b/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/queues.js @@ -293,6 +293,7 @@ var ARTEMIS = (function(ARTEMIS) { } if (parseInt(newVal.pageSize) && newVal !== oldVal && newVal.pageSize !== oldVal.pageSize) { $scope.pagingOptions.currentPage = 1; + $scope.loadTable(); } }, true); diff --git a/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/sessions.js b/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/sessions.js index 9a92ef1a26..c2f575e846 100644 --- a/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/sessions.js +++ b/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/sessions.js @@ -249,6 +249,7 @@ var ARTEMIS = (function(ARTEMIS) { } if (parseInt(newVal.pageSize) && newVal !== oldVal && newVal.pageSize !== oldVal.pageSize) { $scope.pagingOptions.currentPage = 1; + $scope.loadTable(); } }, true);