browser staff : return to page 1 on grid sort
authorBill Erickson <berick@esilibrary.com>
Fri, 11 Apr 2014 17:27:47 +0000 (13:27 -0400)
committerBill Erickson <berick@esilibrary.com>
Fri, 11 Apr 2014 17:27:47 +0000 (13:27 -0400)
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/web/js/ui/default/staff/services/grid.js

index f230bcc..d524cab 100644 (file)
@@ -355,6 +355,7 @@ angular.module('egGridMod',
                     grid.dataProvider.sort = [col_name];
                 }
 
+                grid.offset = 0;
                 grid.collect();
             }
 
@@ -366,6 +367,7 @@ angular.module('egGridMod',
                         // only refresh the grid if the user has the
                         // ability to modify the sort priorities.
                         grid.compileSort();
+                        grid.offset = 0;
                         grid.collect();
                     }
                 } else {