2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 13:05:42 +00:00

Delete a part parameter template from the settings view

This commit is contained in:
Oliver Walters
2019-09-07 20:30:51 +10:00
parent 42ade0e0b7
commit c45fcb45cf
3 changed files with 20 additions and 1 deletions

View File

@ -76,4 +76,16 @@
});
});
$("#param-table").on('click', '.template-delete', function() {
var button = $(this);
var url = "/part/parameter/template/" + button.attr('pk') + "/delete/";
launchModalForm(url, {
success: function() {
$("#param-table").bootstrapTable('refresh');
}
});
});
{% endblock %}