LP#1402797 fix checkout focus after patron load
authorJason Etheridge <jason@esilibrary.com>
Fri, 5 Dec 2014 21:59:30 +0000 (16:59 -0500)
committerBill Erickson <berickxx@gmail.com>
Thu, 12 Feb 2015 16:58:27 +0000 (11:58 -0500)
Thanks to berick and jcamins, and to eeevil for actually nailing the solution

Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/web/js/ui/default/staff/circ/patron/checkout.js

index 5ee1bc5..6b87ed4 100644 (file)
@@ -10,8 +10,9 @@ angular.module('egPatronApp').controller('PatronCheckoutCtrl',
 function($scope , $q , $modal , $routeParams , egCore , egUser , patronSvc , 
          egGridDataProvider , $location , $timeout , egCirc) {
 
-    $scope.initTab('checkout', $routeParams.id);
-    $scope.focusMe = true;
+    $scope.initTab('checkout', $routeParams.id).finally(function(){
+        $scope.focusMe = true;
+    });
     $scope.checkouts = patronSvc.checkouts;
     $scope.checkoutArgs = {
         noncat_type : 'barcode',