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-content">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<h5 id="dbox-title" class="modal-title"></h5>
|
<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>
|
<span aria-hidden="true">×</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -22,6 +22,7 @@
|
|||||||
$.post( "/rem_books_from_loan/" + {{loan_id}}, params, function(data) {
|
$.post( "/rem_books_from_loan/" + {{loan_id}}, params, function(data) {
|
||||||
DeactivateBFLRemSelButton()
|
DeactivateBFLRemSelButton()
|
||||||
$('#bfl-existing').load('/books_for_loan/' + {{loan_id}}, { 'InDBox' : 1 } )
|
$('#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-search-term').val('')
|
||||||
$('#bfl-new').html('')
|
$('#bfl-new').html('')
|
||||||
$('#bfl-existing').load('/books_for_loan/' + {{loan_id}}, { 'InDBox' : 1 } )
|
$('#bfl-existing').load('/books_for_loan/' + {{loan_id}}, { 'InDBox' : 1 } )
|
||||||
|
$("#books_for_loan_bit").load("/books_for_loan/"+{{loan_id}})
|
||||||
} )
|
} )
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user