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>
(cherry picked from commit ea123185b9)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
parent
e1aa995904
commit
ea84926d84
|
|
@ -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