disable ordering on part-name

This commit is contained in:
Matthias 2021-08-20 22:52:14 +02:00
parent 7533a9ac0c
commit 109b8c943e
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -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',