Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 604
- 605 $scope.$watch(
- 606 function() {return $scope.gridControls.selectedItems()},
- 607 function(list) {
- 608 if (list[0])
- 609 patronSvc.setPrimary(null, list[0]);
- 610 },
- 611 true
- 612 );
- 613
- 614 } else {
- 615 patronSvc.search_barcode = $scope.searchArgs.card;
- 616
- 617 var search = compileSearch($scope.searchArgs);
- 618 if (Object.keys(search) == 0) return $q.when();
- 619
- 620 var home_ou = search.home_ou;
- 621 delete search.home_ou;
- 622 var inactive = search.inactive;
- 623 delete search.inactive;
- 624
- 625 fullSearch = {
- 626 search : search,
- 627 sort : compileSort(),
- 628 inactive : inactive,
- 629 home_ou : home_ou,
- 630 };
- 631 }
- 632
- 633 fullSearch.count = count;
- 634 fullSearch.offset = offset;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement