main-label="[% l('Patron Search Results') %]"
items-provider="patronSearchGridProvider"
activate-item="activatePatron"
- on-item-selected="gridItemSelected"
+ on-selection-change="gridSelectionChanged"
persist-key="circ.patron.search">
<eg-grid-field label="[% ('ID') %]" path='id' visible></eg-grid-field>
<eg-grid-field label="[% ('Card') %]" path='card.barcode' visible></eg-grid-field>
// app-globally modify the default flesh fields for
// fleshed user retrieval
egUser.defaultFleshFields = egUser.defaultFleshFields.concat([
+ 'profile',
'net_access_level',
'ident_type',
'ident_type2',
return {offset : 0};
}
- // FIXME: use onItemSelect instead
- $scope.gridItemSelected = function(item) {
- if (item) // null if de-selecting
- patronSvc.setDefault(null, item);
+ $scope.gridSelectionChanged = function(all) {
+ if (all[0])
+ patronSvc.setDefault(null, all[0]);
}
provider.get = function(offset, count) {