Bug 41065: (bug 26553 follow-up) Remove JS error when submitting the form
Uncaught TypeError: patron_table.$ is not a function Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
e057c02ca3
commit
ea123185b9
|
|
@ -569,7 +569,7 @@
|
|||
$('form[name="f"]').on("submit", function(){
|
||||
// Add the checkboxes to the DOM before we submit the form
|
||||
var form = this;
|
||||
var checkboxes = patron_table.$('input:checkbox:checked').serializeArray();
|
||||
var checkboxes = $(patron_table).find('input:checkbox:checked').serializeArray();
|
||||
$.each(checkboxes, function(){
|
||||
let borrowernumber = this.value;
|
||||
if(!$(form).find('input[name="borrowernumber"][value="'+borrowernumber+'"]').length){
|
||||
|
|
|
|||
Loading…
Reference in New Issue