mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Build javascript improvements
- Alter 'no records found' text - Reload allocation table on edit or delete
This commit is contained in:
parent
d061250a9a
commit
11d3975860
@ -123,6 +123,7 @@ function fillAllocationTable(table, index, parent_row, parent_table, options) {
|
||||
*/
|
||||
|
||||
table.bootstrapTable({
|
||||
formatNoMatches: function() { return 'No parts allocated for ' + parent_row.sub_part_detail.name; },
|
||||
columns: [
|
||||
{
|
||||
field: 'stock_item_detail',
|
||||
@ -164,6 +165,7 @@ function fillAllocationTable(table, index, parent_row, parent_table, options) {
|
||||
|
||||
launchModalForm(button.attr('url'), {
|
||||
success: function() {
|
||||
table.bootstrapTable('refresh');
|
||||
}
|
||||
});
|
||||
});
|
||||
@ -173,6 +175,7 @@ function fillAllocationTable(table, index, parent_row, parent_table, options) {
|
||||
|
||||
launchDeleteForm(button.attr('url'), {
|
||||
success: function() {
|
||||
table.bootstrapTable('refresh');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user