Reload BOM table without refreshing enitre page

This commit is contained in:
Oliver 2018-05-02 23:46:08 +10:00
parent 7d21c4ef1c
commit 1d63147380

View File

@ -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
});
});