diff --git a/InvenTree/templates/js/stock.js b/InvenTree/templates/js/stock.js index b156fbc271..3e6fee43e4 100644 --- a/InvenTree/templates/js/stock.js +++ b/InvenTree/templates/js/stock.js @@ -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, }, diff --git a/InvenTree/templates/js/tables.js b/InvenTree/templates/js/tables.js index 9bb10552bf..f2107d8fc9 100644 --- a/InvenTree/templates/js/tables.js +++ b/InvenTree/templates/js/tables.js @@ -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;