From: Bill Erickson Date: Fri, 23 May 2014 18:27:51 +0000 (-0400) Subject: patron search use new grid selection X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=e32191f0886b294b29ebec238480a666e9ca89a8;p=working%2FEvergreen.git patron search use new grid selection Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/templates/staff/circ/patron/t_search_results.tt2 b/Open-ILS/src/templates/staff/circ/patron/t_search_results.tt2 index 84e879244c..38e715cd82 100644 --- a/Open-ILS/src/templates/staff/circ/patron/t_search_results.tt2 +++ b/Open-ILS/src/templates/staff/circ/patron/t_search_results.tt2 @@ -4,7 +4,7 @@ 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"> diff --git a/Open-ILS/web/js/ui/default/staff/circ/patron/app.js b/Open-ILS/web/js/ui/default/staff/circ/patron/app.js index 75a4874f59..0020d9f4b3 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/patron/app.js +++ b/Open-ILS/web/js/ui/default/staff/circ/patron/app.js @@ -37,6 +37,7 @@ angular.module('egPatronApp', ['ngRoute', 'ui.bootstrap', // app-globally modify the default flesh fields for // fleshed user retrieval egUser.defaultFleshFields = egUser.defaultFleshFields.concat([ + 'profile', 'net_access_level', 'ident_type', 'ident_type2', @@ -465,10 +466,9 @@ function($scope, $q, $routeParams, $timeout, $window, $location, egCore, 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) {