2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-20 05:46:34 +00:00

lots of linting fixes for JS files

This commit is contained in:
Oliver
2021-09-03 22:54:17 +10:00
parent cb403a5b29
commit 888fa51cd7
23 changed files with 673 additions and 603 deletions

View File

@ -12,7 +12,7 @@
function reloadAttachmentTable() {
$('#attachment-table').bootstrapTable("refresh");
$('#attachment-table').bootstrapTable('refresh');
}
@ -24,7 +24,7 @@ function loadAttachmentTable(url, options) {
url: url,
name: options.name || 'attachments',
formatNoMatches: function() {
return '{% trans "No attachments found" %}'
return '{% trans "No attachments found" %}';
},
sortable: true,
search: false,
@ -67,7 +67,7 @@ function loadAttachmentTable(url, options) {
} else {
var images = ['.png', '.jpg', '.bmp', '.gif', '.svg', '.tif'];
images.forEach(function (suffix) {
images.forEach(function(suffix) {
if (fn.endsWith(suffix)) {
icon = 'fa-file-image';
}
@ -118,4 +118,4 @@ function loadAttachmentTable(url, options) {
}
]
});
}
}