mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
disable ordering on category
This commit is contained in:
parent
109b8c943e
commit
5a59a37a89
@ -872,8 +872,7 @@ function loadPartTable(table, url, options={}) {
|
||||
}
|
||||
});
|
||||
|
||||
columns.push({
|
||||
sortable: true,
|
||||
col = {
|
||||
sortName: 'category',
|
||||
field: 'category_detail',
|
||||
title: '{% trans "Category" %}',
|
||||
@ -885,7 +884,11 @@ function loadPartTable(table, url, options={}) {
|
||||
return '{% trans "No category" %}';
|
||||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
if (!options.params.ordering) {
|
||||
col['sortable'] = true;
|
||||
};
|
||||
columns.push(col);
|
||||
|
||||
columns.push({
|
||||
field: 'in_stock',
|
||||
|
Loading…
Reference in New Issue
Block a user