Skip to content

Commit dd969a5

Browse files
mmorgannoblesandbergja
authored andcommitted
LP#2080899: BOOPAC: Disable Submit Payment Button when no amount selected
Signed-off-by: Michele Morgan <[email protected]> Signed-off-by: Llewellyn Marshall <[email protected]> Signed-off-by: Jane Sandberg <[email protected]>
1 parent bbf9f8e commit dd969a5

File tree

1 file changed

+1
-0
lines changed
  • Open-ILS/src/templates-bootstrap/opac/myopac

1 file changed

+1
-0
lines changed

Open-ILS/src/templates-bootstrap/opac/myopac/charges.tt2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ $( document ).ready(function() {
244244
});
245245
$("#total").val(amount);
246246
$("#selectPay").html('<i class="fas fa-money-bill-wave" aria-hidden="true"></i> [% l('Pay Selected Charges') %] - $' + amount.toFixed(2));
247+
$("#selectPay").prop('disabled', (amount == 0));
247248
});
248249
});
249250

0 commit comments

Comments
 (0)