From 3e078a7077198058542b8aa71b02f2393081f139 Mon Sep 17 00:00:00 2001 From: Mike Rylander Date: Fri, 4 Sep 2015 13:57:16 -0400 Subject: [PATCH] webstaff: Add a save-and-continue mode Signed-off-by: Mike Rylander Signed-off-by: Galen Charlton Signed-off-by: Jason Stephenson --- Open-ILS/src/templates/staff/cat/volcopy/t_edit.tt2 | 5 ++++- Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js | 6 +++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Open-ILS/src/templates/staff/cat/volcopy/t_edit.tt2 b/Open-ILS/src/templates/staff/cat/volcopy/t_edit.tt2 index 4897231c96..d6805ade97 100644 --- a/Open-ILS/src/templates/staff/cat/volcopy/t_edit.tt2 +++ b/Open-ILS/src/templates/staff/cat/volcopy/t_edit.tt2 @@ -113,14 +113,17 @@ - + diff --git a/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js b/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js index b0f5dc7e5f..031581dca5 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js +++ b/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js @@ -1117,7 +1117,7 @@ function($scope , $q , $window , $routeParams , $location , $timeout , egCore , $scope.saveCompletedCopies = function (and_exit) { var cnHash = {}; var perCnCopies = {}; - angular.forEach( $scope.completed_copies, function (cp) { + angular.forEach( egCore.idl.Clone($scope.completed_copies), function (cp) { var cn_id = cp.call_number().id(); if (!cnHash[cn_id]) { cnHash[cn_id] = cp.call_number(); @@ -1149,6 +1149,10 @@ function($scope , $q , $window , $routeParams , $location , $timeout , egCore , }); } + $scope.saveAndContinue = function () { + $scope.saveCompletedCopies(false); + } + $scope.saveAndExit = function () { $scope.saveCompletedCopies(true); } -- 2.11.0