ng-model="searchArgs.second_given_name" placeholder="[% l('Middle Name') %]"/>
</div>
- <div class="col-md-2">
+ <div class="col-md-2" onmouseover="window.prevElement=document.activeElement">
<input type="submit" class="btn btn-default" value="[% l('Search') %]"/>
</div>
- <div class="col-md-2">
- <input type="reset" class="btn btn-default" ng-click="searchArgs={}"
+ <div class="col-md-2" onmouseover="window.prevElement=document.activeElement">
+ <input type="reset" class="btn btn-default" ng-click="clearForm()"
value="[% l('Clear Form') %]"/>
</div>
<div class="col-md-2">
<button class="btn btn-default" ng-click="applyShowExtras($event, true)"
+ onmouseover="window.prevElement=document.activeElement"
title="[% l('Show More Fields') %]" ng-show="!showExtras">
<span class="glyphicon glyphicon-circle-arrow-down"></span>
</button>
<button class="btn btn-default" ng-click="applyShowExtras($event, false)"
+ onmouseover="window.prevElement=document.activeElement"
title="[% l('Show Fewer Fields') %]" ng-show="showExtras">
<span class="glyphicon glyphicon-circle-arrow-up"></span>
</button>
return d;
}
+ $scope.clearForm = function () {
+ $scope.searchArgs={};
+ window.prevElement.focus();
+ }
+
$scope.applyShowExtras = function($event, bool) {
if (bool) {
$scope.showExtras = true;
$scope.showExtras = false;
egCore.hatch.removeItem('eg.circ.patron.search.show_extras');
}
+ window.prevElement.focus();
$event.preventDefault();
}