improve UX for add/remove subbooks - updates content to original page behind modal, when we add/remove and fix the broken close button on modal
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 id="dbox-title" class="modal-title"></h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<button type="button" class="close" onclick="$('#dbox').modal('hide');" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
$.post( "/rem_books_from_loan/" + {{loan_id}}, params, function(data) {
|
||||
DeactivateBFLRemSelButton()
|
||||
$('#bfl-existing').load('/books_for_loan/' + {{loan_id}}, { 'InDBox' : 1 } )
|
||||
$("#books_for_loan_bit").load("/books_for_loan/"+{{loan_id}})
|
||||
} )
|
||||
}
|
||||
|
||||
@@ -91,6 +92,7 @@
|
||||
$('#bfl-search-term').val('')
|
||||
$('#bfl-new').html('')
|
||||
$('#bfl-existing').load('/books_for_loan/' + {{loan_id}}, { 'InDBox' : 1 } )
|
||||
$("#books_for_loan_bit").load("/books_for_loan/"+{{loan_id}})
|
||||
} )
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user