diff --git a/README b/README index aa3c65a..a935d3c 100644 --- a/README +++ b/README @@ -38,7 +38,6 @@ TODO-4: removing a subbook from a series - popup with: this is a subbook, you want to remove the parent & all its sub books from the series? TODO-5: should deleting really just ask if want to mark it as SOLD? TODO-6: need to add books to loan (on loan page, and via a book search?) -TODO-7: need to delete book from loan TODO-8: show books on shelf list TODO-9: show books to buy view / printable TODO-11: show unrated books (with toggle to exclude those with missing in a series) diff --git a/templates/books_for_loan.html b/templates/books_for_loan.html index ea16b34..1d5d452 100644 --- a/templates/books_for_loan.html +++ b/templates/books_for_loan.html @@ -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()