From: Jason Etheridge Date: Fri, 5 Dec 2014 21:59:30 +0000 (-0500) Subject: fix checkout focus after patron load X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=a50db46bdd9f2866bf3ab1e960ba786a2300143a;p=working%2FEvergreen.git 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 --- 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',