mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Remove code which was causing issue
This commit is contained in:
parent
b43d6a2ad4
commit
efc2290613
@ -101,7 +101,7 @@ function loadStockTestResultsTable(table, options) {
|
||||
},
|
||||
{
|
||||
field: 'test_name',
|
||||
title: "{% trans "Test Name" %}",
|
||||
title: '{% trans "Test Name" %}',
|
||||
sortable: true,
|
||||
formatter: function(value, row) {
|
||||
var html = value;
|
||||
@ -925,7 +925,7 @@ function loadStockTrackingTable(table, options) {
|
||||
}
|
||||
else
|
||||
{
|
||||
return "{% trans "No user information" %}";
|
||||
return '{% trans "No user information" %}';
|
||||
}
|
||||
}
|
||||
});
|
||||
@ -1206,7 +1206,7 @@ function loadInstalledInTable(table, options) {
|
||||
columns: [
|
||||
{
|
||||
checkbox: true,
|
||||
title: '{% trans 'Select' %}',
|
||||
title: '{% trans "Select" %}',
|
||||
searchable: false,
|
||||
switchable: false,
|
||||
},
|
||||
|
@ -11,7 +11,7 @@ function deleteButton(url, text='Delete') {
|
||||
|
||||
|
||||
function renderLink(text, url, options={}) {
|
||||
if (url == null || url === '') {
|
||||
if (url === null || url === undefined || url === '') {
|
||||
return text;
|
||||
}
|
||||
|
||||
@ -19,14 +19,6 @@ function renderLink(text, url, options={}) {
|
||||
|
||||
var remove_http = options.remove_http || false;
|
||||
|
||||
if (remove_http) {
|
||||
if (text.startsWith('http://')) {
|
||||
text = text.slice(7);
|
||||
} else if (text.startsWith('https://')) {
|
||||
text = text.slice(8);
|
||||
}
|
||||
}
|
||||
|
||||
// Shorten the displayed length if required
|
||||
if ((max_length > 0) && (text.length > max_length)) {
|
||||
var slice_length = (max_length - 3) / 2;
|
||||
|
Loading…
Reference in New Issue
Block a user