mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-30 20:46:47 +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({
|
table.bootstrapTable({
|
||||||
|
formatNoMatches: function() { return 'No parts allocated for ' + parent_row.sub_part_detail.name; },
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
field: 'stock_item_detail',
|
field: 'stock_item_detail',
|
||||||
@ -164,6 +165,7 @@ function fillAllocationTable(table, index, parent_row, parent_table, options) {
|
|||||||
|
|
||||||
launchModalForm(button.attr('url'), {
|
launchModalForm(button.attr('url'), {
|
||||||
success: function() {
|
success: function() {
|
||||||
|
table.bootstrapTable('refresh');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@ -173,6 +175,7 @@ function fillAllocationTable(table, index, parent_row, parent_table, options) {
|
|||||||
|
|
||||||
launchDeleteForm(button.attr('url'), {
|
launchDeleteForm(button.attr('url'), {
|
||||||
success: function() {
|
success: function() {
|
||||||
|
table.bootstrapTable('refresh');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user