mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +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 = {
|
||||
field: 'name',
|
||||
title: '{% trans "Part" %}',
|
||||
sortable: true,
|
||||
switchable: false,
|
||||
formatter: function(value, row, index, field) {
|
||||
|
||||
@ -854,7 +853,11 @@ function loadPartTable(table, url, options={}) {
|
||||
|
||||
return display;
|
||||
}
|
||||
});
|
||||
};
|
||||
if (!options.params.ordering) {
|
||||
col['sortable'] = true;
|
||||
};
|
||||
columns.push(col);
|
||||
|
||||
columns.push({
|
||||
field: 'description',
|
||||
|
Loading…
Reference in New Issue
Block a user