TODO-7 removing book(s) from loan works, and UI is better now

This commit is contained in:
2021-01-04 22:07:06 +11:00
parent 17c0c2a024
commit 6ff3d13713
2 changed files with 3 additions and 4 deletions

View File

@@ -8,9 +8,9 @@
function RemoveSelFromLoan()
{
var params=$("#book_table :input").serializeArray()
$('#dbox').modal('hide')
$.post( "/rem_books_from_loan/" + {{loan_id}}, params, function(data) { $('#bfl-existing').html('U SHOULD NEVER SEE THIS: calling the rem_books_from_loan page') } )
window.location = "/loan/" + {{loan_id}}
$.post( "/rem_books_from_loan/" + {{loan_id}}, params, function(data) {
$('#bfl-existing').load('/books_for_loan/' + {{loan_id}}, { 'InDBox' : 1 } )
} )
}
function ShowDBox()