From b481c74c0a2ad59fad2ad2e90d6d3957b9800c14 Mon Sep 17 00:00:00 2001 From: Jason Etheridge Date: Fri, 5 Dec 2014 16:59:30 -0500 Subject: [PATCH] LP#1402797 fix checkout focus after patron load Thanks to berick and jcamins, and to eeevil for actually nailing the solution Signed-off-by: Jason Etheridge Signed-off-by: Kathy Lussier --- Open-ILS/web/js/ui/default/staff/circ/patron/checkout.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Open-ILS/web/js/ui/default/staff/circ/patron/checkout.js b/Open-ILS/web/js/ui/default/staff/circ/patron/checkout.js index 5ee1bc5a6f..6b87ed4cbb 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/patron/checkout.js +++ b/Open-ILS/web/js/ui/default/staff/circ/patron/checkout.js @@ -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', -- 2.11.0