Advertisement
chrissharp123

Untitled

Sep 28th, 2017
313
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  604
  2.  605     $scope.$watch(
  3.  606         function() {return $scope.gridControls.selectedItems()},
  4.  607         function(list) {
  5.  608             if (list[0])
  6.  609                 patronSvc.setPrimary(null, list[0]);
  7.  610         },
  8.  611         true
  9.  612     );
  10.  613
  11.  614         } else {
  12.  615             patronSvc.search_barcode = $scope.searchArgs.card;
  13.  616
  14.  617             var search = compileSearch($scope.searchArgs);
  15.  618             if (Object.keys(search) == 0) return $q.when();
  16.  619
  17.  620             var home_ou = search.home_ou;
  18.  621             delete search.home_ou;
  19.  622             var inactive = search.inactive;
  20.  623             delete search.inactive;
  21.  624
  22.  625             fullSearch = {
  23.  626                 search : search,
  24.  627                 sort : compileSort(),
  25.  628                 inactive : inactive,
  26.  629                 home_ou : home_ou,
  27.  630             };
  28.  631         }
  29.  632
  30.  633         fullSearch.count = count;
  31.  634         fullSearch.offset = offset;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement