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