LP#1402797 Apply focus in the .finally() in case there was a popup
authorMike Rylander <mrylander@gmail.com>
Fri, 12 Dec 2014 19:01:59 +0000 (14:01 -0500)
committerBill Erickson <berickxx@gmail.com>
Thu, 12 Feb 2015 16:58:27 +0000 (11:58 -0500)
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/web/js/ui/default/staff/circ/patron/checkout.js

index 6b87ed4..1150026 100644 (file)
@@ -91,7 +91,7 @@ function($scope , $q , $modal , $routeParams , egCore , egUser , patronSvc ,
             });
         }
 
-        $scope.focusMe; // return focus to barcode input
+        $scope.focusMe = true; // return focus to barcode input
     }
 
     function send_checkout(params) {
@@ -146,6 +146,8 @@ function($scope , $q , $modal , $routeParams , egCore , egUser , patronSvc ,
             // barcode from the pending list.
             if (params.copy_barcode)
                 delete pending_barcodes[params.copy_barcode];
+
+            $scope.focusMe = true; // return focus to barcode input
         });
     }