lp1846038 Web client: Billing Full Details Shows Blank Grid collab/phasefx/lp1846038
authorJason Etheridge <jason@EquinoxInitiative.org>
Mon, 21 Oct 2019 13:07:11 +0000 (09:07 -0400)
committerJason Etheridge <jason@EquinoxInitiative.org>
Mon, 21 Oct 2019 13:07:11 +0000 (09:07 -0400)
delay the call to grid.dataProvider.refresh(); to fix the bill full details grid

Signed-off-by: Jason Etheridge <jason@EquinoxInitiative.org>
Open-ILS/web/js/ui/default/staff/services/grid.js

index 1d5df7d..803e8bc 100644 (file)
@@ -256,7 +256,9 @@ angular.module('egGridMod',
                     // link columns to scope after loadConfig(), since it
                     // replaces the columns array.
                     $scope.columns = grid.columnsProvider.columns;
-                    grid.dataProvider.refresh();
+                    $timeout( function() {
+                        grid.dataProvider.refresh();
+                    });
                 });
 
                 // NOTE: grid.collect() is first called from link(), not here.