mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Cleanup javascript console log messages (#3706)
This commit is contained in:
parent
829a9d8311
commit
db3d9b551a
@ -207,13 +207,12 @@ function enableDragAndDrop(element, url, options) {
|
||||
formData,
|
||||
{
|
||||
success: function(data, status, xhr) {
|
||||
console.log('Uploaded file via drag-and-drop');
|
||||
if (options.success) {
|
||||
options.success(data, status, xhr);
|
||||
}
|
||||
},
|
||||
error: function(xhr, status, error) {
|
||||
console.log('File upload failed');
|
||||
console.error('File upload failed');
|
||||
if (options.error) {
|
||||
options.error(xhr, status, error);
|
||||
}
|
||||
@ -222,7 +221,7 @@ function enableDragAndDrop(element, url, options) {
|
||||
}
|
||||
);
|
||||
} else {
|
||||
console.log('Ignoring drag-and-drop event (not a file)');
|
||||
console.warn('Ignoring drag-and-drop event (not a file)');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -154,7 +154,7 @@ function enableBreadcrumbTree(options) {
|
||||
var label = options.label;
|
||||
|
||||
if (!label) {
|
||||
console.log('ERROR: enableBreadcrumbTree called without supplying label');
|
||||
console.error('enableBreadcrumbTree called without supplying label');
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user