mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-01 03:00:54 +00:00
Short strings (#3695)
* Adds a helper function to cut the "middle" out of a string which is too long * Remove duplicated JS function * Adds helper function for wrapping a simple tooltip div around a HTML element * Update part table with shortened strings * Update PartCategory table * Update StockLocation table * Update to Stock table * Update build table * JS linting
This commit is contained in:
@ -1721,7 +1721,7 @@ function loadBuildOutputAllocationTable(buildInfo, output, options={}) {
|
||||
formatter: function(value, row) {
|
||||
|
||||
if (row.location && row.location_detail) {
|
||||
var text = row.location_detail.name;
|
||||
var text = shortenString(row.location_detail.pathstring);
|
||||
var url = `/stock/location/${row.location}/`;
|
||||
|
||||
return renderLink(text, url);
|
||||
|
Reference in New Issue
Block a user