webstaff: Add a Save & Exit shortcut to the copy attribute editing pane
authorMike Rylander <mrylander@gmail.com>
Mon, 28 Sep 2015 15:33:31 +0000 (11:33 -0400)
committerKathy Lussier <klussier@masslnc.org>
Tue, 2 Feb 2016 19:58:47 +0000 (14:58 -0500)
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/src/templates/staff/cat/volcopy/t_edit.tt2
Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js

index 14b46bd..cb40f24 100644 (file)
         
                           <eg-grid-menu-item handler="workingToComplete"
                            label="[% l('Store Selected') %]"></eg-grid-menu-item>
+                          <eg-grid-menu-item handler="workingSaveAndExit"
+                           label="[% l('Save & Exit') %]"></eg-grid-menu-item>
         
                         
                           <eg-grid-field label="[% l('Barcode') %]"     path='barcode' visible></eg-grid-field>
index 5863f92..273c0df 100644 (file)
@@ -1315,6 +1315,11 @@ function($scope , $q , $window , $routeParams , $location , $timeout , egCore ,
             $scope.saveCompletedCopies(false);
         }
 
+        $scope.workingSaveAndExit = function () {
+            $scope.workingToComplete();
+            $scope.saveAndExit();
+        }
+
         $scope.saveAndExit = function () {
             $scope.saveCompletedCopies(true);
         }