From: Terran McCanna Date: Wed, 12 Jan 2022 16:13:31 +0000 (-0500) Subject: PINES local fix for patron search X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=d720c09758d58e8e664b78459845db6ffcbfa2a6;p=evergreen%2Fpines.git PINES local fix for patron search This removes a previous fix I'd created for the patron search "clear" button, but keeps the previous fix for the patron search inactive checkbox. Signed-off-by: Terran McCanna --- diff --git a/Open-ILS/web/js/ui/default/staff/services/patron_search.js b/Open-ILS/web/js/ui/default/staff/services/patron_search.js index 27999d90d7..6a9936fa83 100644 --- a/Open-ILS/web/js/ui/default/staff/services/patron_search.js +++ b/Open-ILS/web/js/ui/default/staff/services/patron_search.js @@ -528,7 +528,7 @@ function($scope, $q, $routeParams, $timeout, $window, $location, egCore, // PINES Customization - default to search inactive $scope.searchArgs.inactive = true; - + // last used patron search form element var lastFormElement; @@ -745,12 +745,9 @@ function($scope, $q, $routeParams, $timeout, $window, $location, egCore, } $scope.clearForm = function () { - //PINES Customization - instead of resetting fields, refresh page - //because this allows us to get the correct field defaults - //$scope.searchArgs={}; - //if (lastFormElement) lastFormElement.focus(); - $window.location.reload(); - } + $scope.searchArgs={}; + if (lastFormElement) lastFormElement.focus(); + } $scope.applyShowExtras = function($event, bool) { if (bool) {