mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
JS linting fixes
This commit is contained in:
parent
b595fa0e7e
commit
51da1f02a8
@ -977,7 +977,7 @@ function loadBuildOutputTable(build_info, options={}) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
var part_tests = null;
|
var part_tests = null;
|
||||||
@ -1283,7 +1283,7 @@ function loadBuildOutputTable(build_info, options={}) {
|
|||||||
$('#build-stock-table').bootstrapTable('refresh');
|
$('#build-stock-table').bootstrapTable('refresh');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
// Print stock item labels
|
// Print stock item labels
|
||||||
@ -1375,10 +1375,6 @@ function loadBuildOutputAllocationTable(buildInfo, output, options={}) {
|
|||||||
|
|
||||||
setupFilterList('builditems', $(table), options.filterTarget);
|
setupFilterList('builditems', $(table), options.filterTarget);
|
||||||
|
|
||||||
// If an "output" is specified, then only "trackable" parts are allocated
|
|
||||||
// Otherwise, only "untrackable" parts are allowed
|
|
||||||
var trackable = ! !output;
|
|
||||||
|
|
||||||
var allocated_items = output == null ? null : output.allocations;
|
var allocated_items = output == null ? null : output.allocations;
|
||||||
|
|
||||||
function redrawAllocationData() {
|
function redrawAllocationData() {
|
||||||
@ -1447,11 +1443,6 @@ function loadBuildOutputAllocationTable(buildInfo, output, options={}) {
|
|||||||
redrawAllocationData();
|
redrawAllocationData();
|
||||||
}
|
}
|
||||||
|
|
||||||
function reloadTable() {
|
|
||||||
// Reload the entire build allocation table
|
|
||||||
$(table).bootstrapTable('refresh');
|
|
||||||
}
|
|
||||||
|
|
||||||
function requiredQuantity(row) {
|
function requiredQuantity(row) {
|
||||||
// Return the requied quantity for a given row
|
// Return the requied quantity for a given row
|
||||||
|
|
||||||
@ -1812,7 +1803,7 @@ function loadBuildOutputAllocationTable(buildInfo, output, options={}) {
|
|||||||
sortable: true,
|
sortable: true,
|
||||||
formatter: function(value, row) {
|
formatter: function(value, row) {
|
||||||
var allocated = allocatedQuantity(row);
|
var allocated = allocatedQuantity(row);
|
||||||
var required = requiredQuantity(row)
|
var required = requiredQuantity(row);
|
||||||
return makeProgressBar(allocated, required);
|
return makeProgressBar(allocated, required);
|
||||||
},
|
},
|
||||||
sorter: function(valA, valB, rowA, rowB) {
|
sorter: function(valA, valB, rowA, rowB) {
|
||||||
|
Loading…
Reference in New Issue
Block a user