mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-22 20:56:30 +00:00
disable ordering on part-name
This commit is contained in:
@@ -823,10 +823,9 @@ function loadPartTable(table, url, options={}) {
|
|||||||
};
|
};
|
||||||
columns.push(col);
|
columns.push(col);
|
||||||
|
|
||||||
columns.push({
|
col = {
|
||||||
field: 'name',
|
field: 'name',
|
||||||
title: '{% trans "Part" %}',
|
title: '{% trans "Part" %}',
|
||||||
sortable: true,
|
|
||||||
switchable: false,
|
switchable: false,
|
||||||
formatter: function(value, row, index, field) {
|
formatter: function(value, row, index, field) {
|
||||||
|
|
||||||
@@ -854,7 +853,11 @@ function loadPartTable(table, url, options={}) {
|
|||||||
|
|
||||||
return display;
|
return display;
|
||||||
}
|
}
|
||||||
});
|
};
|
||||||
|
if (!options.params.ordering) {
|
||||||
|
col['sortable'] = true;
|
||||||
|
};
|
||||||
|
columns.push(col);
|
||||||
|
|
||||||
columns.push({
|
columns.push({
|
||||||
field: 'description',
|
field: 'description',
|
||||||
|
Reference in New Issue
Block a user