To test:
1) Do a catalog search and click on one of the records.
2) Click "Add Holdings"
3) Note that there is no focus in the barcode field.
4) Apply this commit.
5) Repeat steps 1-2. Note that there is now focus in the
barcode field.
Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
'<div class="col-xs-5" ng-class="{'+"'has-error'"+':barcode_has_error}">'+
'<input id="{{callNumber.id()}}_{{copy.id()}}"'+
' eg-enter="nextBarcode(copy.id())" class="form-control"'+
- ' type="text" ng-model="barcode" ng-change="updateBarcode()"/>'+
+ ' type="text" ng-model="barcode" ng-change="updateBarcode()" autofocus />'+
'<div class="label label-danger" ng-if="duplicate_barcode">{{duplicate_barcode_string}}</div>'+
'<div class="label label-danger" ng-if="empty_barcode">{{empty_barcode_string}}</div>'+
'</div>'+