From 0ef6804d794e1aca11fd1a38b10033f59e7ef5e7 Mon Sep 17 00:00:00 2001 From: Jason Etheridge Date: Thu, 27 Jun 2019 18:15:50 -0400 Subject: [PATCH] lp1790169 call compileSort after closing showColumnDialog or in other words, make Sort Priority work right away after configuring it Signed-off-by: Jason Etheridge --- Open-ILS/web/js/ui/default/staff/services/grid.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Open-ILS/web/js/ui/default/staff/services/grid.js b/Open-ILS/web/js/ui/default/staff/services/grid.js index e4e928bd9a..f6b9b6ca79 100644 --- a/Open-ILS/web/js/ui/default/staff/services/grid.js +++ b/Open-ILS/web/js/ui/default/staff/services/grid.js @@ -1207,6 +1207,13 @@ angular.module('egGridMod', } $dialogScope.ok = $dialogScope.cancel = function() { delete $scope.lastModColumn; + if (grid.columnsProvider.hasSortableColumn()) { + // only refresh the grid if the user has the + // ability to modify the sort priorities. + grid.compileSort(); + grid.offset = 0; + grid.collect(); + } $uibModalInstance.close() } } -- 2.11.0