mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Reload BOM table without refreshing enitre page
This commit is contained in:
parent
7d21c4ef1c
commit
1d63147380
@ -25,13 +25,17 @@
|
||||
{% endblock %}
|
||||
{% block js_ready %}
|
||||
|
||||
function reloadBom() {
|
||||
$("#bom-table").bootstrapTable('refresh');
|
||||
}
|
||||
|
||||
$('#bom-table').on('click', '.delete-button', function () {
|
||||
var button = $(this);
|
||||
|
||||
launchDeleteForm("#modal-delete",
|
||||
button.attr('url'),
|
||||
{
|
||||
reload: true
|
||||
success: reloadBom
|
||||
});
|
||||
});
|
||||
|
||||
@ -41,7 +45,7 @@
|
||||
launchModalForm("#modal-form",
|
||||
button.attr('url'),
|
||||
{
|
||||
reload: true
|
||||
success: reloadBom
|
||||
});
|
||||
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user