2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-30 18:50:53 +00:00

Brace style fixes

This commit is contained in:
Oliver Walters
2021-08-30 20:30:26 +10:00
parent e1adef5010
commit 4c39607e00
8 changed files with 64 additions and 51 deletions

View File

@ -938,12 +938,9 @@ function loadBuildTable(table, options) {
title: '{% trans "Issued by" %}',
sortable: true,
formatter: function(value, row) {
if (value)
{
if (value) {
return row.issued_by_detail.username;
}
else
{
} else {
return `<i>{% trans "No user information" %}</i>`;
}
}
@ -953,12 +950,9 @@ function loadBuildTable(table, options) {
title: '{% trans "Responsible" %}',
sortable: true,
formatter: function(value, row) {
if (value)
{
if (value) {
return row.responsible_detail.name;
}
else
{
} else {
return '{% trans "No information" %}';
}
}
@ -1009,7 +1003,9 @@ function loadAllocationTable(table, part_id, part, url, required, button) {
table.bootstrapTable({
url: url,
sortable: false,
formatNoMatches: function() { return '{% trans "No parts allocated for" %} ' + part; },
formatNoMatches: function() {
return '{% trans "No parts allocated for" %} ' + part;
},
columns: [
{
field: 'stock_item_detail',