add acknowledge alerts to renewal
authorGalen Charlton <gmc@esilibrary.com>
Thu, 17 Dec 2015 23:22:10 +0000 (18:22 -0500)
committerGalen Charlton <gmc@equinoxinitiative.org>
Fri, 3 Nov 2017 20:02:37 +0000 (16:02 -0400)
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/templates/staff/circ/renew/t_renew.tt2
Open-ILS/web/js/ui/default/staff/circ/renew/app.js

index ae1f7e7..7233765 100644 (file)
     handler="abortTransit"
     label="[% l('Cancel Transits') %]">
   </eg-grid-action>
+  <eg-grid-action divider="true"></eg-grid-action>
+  <eg-grid-action wq
+    handler="manageCopyAlerts"
+    label="[% l('Acknowledge Alerts') %]">
+  </eg-grid-action>
 
 
   <eg-grid-field label="[% l('Balance Owed') %]"     
index 23df08d..91d589f 100644 (file)
@@ -200,6 +200,16 @@ function($scope , $window , $location , egCore , egGridDataProvider , egCirc) {
         });
     }
 
+    $scope.manageCopyAlerts = function(items) {
+        var copy_ids = [];
+        angular.forEach(items, function(item) {
+            if (item.acp) copy_ids.push(item.acp.id());
+        });
+        egCirc.manage_copy_alerts(copy_ids).then(function() {
+            // update grid items?
+        });
+    }
+
     $scope.print_receipt = function() {
         var print_data = {circulations : []}