If you double or multiple click the Apply Payment button in the patron
bills interface in the web staff client quickly enough, more than one
payment is recorded. This patch resolves that by adding a double
click handler to the button that does nothing.
Signed-off-by: Jason Stephenson <jason@sigio.com>
type="submit"
class="btn btn-default"
ng-disabled="invalid_check_number() || !gridControls.selectedItems().length"
+ ng-dblclick="dblClickNoOp()"
>[% l('Apply Payment') %]</button>
</div>
</div>
});
}
+ service.dblClickNoOp = function() {
+ return false;
+ }
+
service.fetchBills = function(xact_id) {
var bills = [];
return egCore.pcrud.search('mb',