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 <tmccanna@georgialibraries.org>
// PINES Customization - default to search inactive
$scope.searchArgs.inactive = true;
-
+
// last used patron search form element
var lastFormElement;
}
$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) {