mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-01 21:16:46 +00:00
disable ordering on part-name
This commit is contained in:
parent
7533a9ac0c
commit
109b8c943e
@ -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',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user