2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-29 20:16:44 +00:00

Cleanup javascript console log messages (#3706)

This commit is contained in:
Oliver 2022-09-22 09:30:04 +10:00 committed by GitHub
parent 829a9d8311
commit db3d9b551a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 4 deletions

View File

@ -207,13 +207,12 @@ function enableDragAndDrop(element, url, options) {
formData, formData,
{ {
success: function(data, status, xhr) { success: function(data, status, xhr) {
console.log('Uploaded file via drag-and-drop');
if (options.success) { if (options.success) {
options.success(data, status, xhr); options.success(data, status, xhr);
} }
}, },
error: function(xhr, status, error) { error: function(xhr, status, error) {
console.log('File upload failed'); console.error('File upload failed');
if (options.error) { if (options.error) {
options.error(xhr, status, error); options.error(xhr, status, error);
} }
@ -222,7 +221,7 @@ function enableDragAndDrop(element, url, options) {
} }
); );
} else { } else {
console.log('Ignoring drag-and-drop event (not a file)'); console.warn('Ignoring drag-and-drop event (not a file)');
} }
}); });
} }

View File

@ -154,7 +154,7 @@ function enableBreadcrumbTree(options) {
var label = options.label; var label = options.label;
if (!label) { if (!label) {
console.log('ERROR: enableBreadcrumbTree called without supplying label'); console.error('enableBreadcrumbTree called without supplying label');
return; return;
} }