</div>
<div class="modal-footer">
<button class="btn btn-warning"
- ng-click="cancel()">[% l('Cancel') %]</button>
+ ng-click="cancel($event)">[% l('Cancel') %]</button>
<input type="submit" class="btn btn-primary"
value="[% l('Normal Checkin then Checkout') %]"/>
</div>
-<br/><br/> <!-- css -->
-
<!-- TODO: inputs need sr-only labels
<label class="sr-only" for="input-id">label</label>
-->
features="-sort,-display,-multisort"
main-label="[% l('Patron Search Results') %]"
items-provider="patronSearchGridProvider"
+ activate-item="activatePatron"
persist-key="circ.patron.search">
<eg-grid-field label="[% ('ID') %]" path='id' visible></eg-grid-field>
<eg-grid-field label="[% ('Card') %]" path='card.barcode' visible></eg-grid-field>
$scope.initTab('search');
$scope.focusMe = true;
$scope.searchArgs = {};
+ $scope.activatePatron = function(usr) {
+ $location.path('/circ/patron/' + usr.id() + '/checkout');
+ }
// cache of object field values; speeds up grid rendering for
// nested objects. TODO: move into grid?
function($scope , $modalInstance , openCirc) {
$scope.circDate = openCirc.xact_start();
$scope.ok = function() { $modalInstance.close() }
- $scope.cancel = function () { $modalInstance.dismiss() }
+ $scope.cancel = function($event) {
+ $modalInstance.dismiss();
+ $event.preventDefault(); // form: prevent ok() from firing
+ }
}],
resolve : {
openCirc : function() {