From d720c09758d58e8e664b78459845db6ffcbfa2a6 Mon Sep 17 00:00:00 2001 From: Terran McCanna Date: Wed, 12 Jan 2022 11:13:31 -0500 Subject: [PATCH] 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 --- Open-ILS/web/js/ui/default/staff/services/patron_search.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) 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) { -- 2.11.0