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