or in other words, make Sort Priority work right away after configuring it
Signed-off-by: Jason Etheridge <jason@EquinoxInitiative.org>
Signed-off-by: Remington Steed <rjs7@calvin.edu>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
}
$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()
}
}