webstaff: work log: make refresh button work
authorGalen Charlton <gmc@esilibrary.com>
Wed, 4 May 2016 19:30:29 +0000 (15:30 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Wed, 4 May 2016 19:30:29 +0000 (15:30 -0400)
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Open-ILS/web/js/ui/default/staff/admin/workstation/log.js

index 4f8ec28..2fdd575 100644 (file)
@@ -64,10 +64,11 @@ function($scope , $q , $routeParams , $window , $timeout , egCore , egGridDataPr
         activateItem : load_patron
     }
 
-    function refresh_page() {
+    $scope.refresh_ui = function() {
         work_log_entries = [];
         patron_log_entries = [];
-        provider.refresh();
+        work_log_provider.refresh();
+        patron_log_provider.refresh();
     }
 
     function fetch_hold(deferred,entry) {