From: Jason Etheridge Date: Thu, 27 Jun 2019 22:15:50 +0000 (-0400) Subject: lp1790169 call compileSort after closing showColumnDialog X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=d236510ea438286f2eb830d9334322f7327d9b4e;p=working%2FEvergreen.git lp1790169 call compileSort after closing showColumnDialog or in other words, make Sort Priority work right away after configuring it Signed-off-by: Jason Etheridge Signed-off-by: Remington Steed --- 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() } }