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:
parent
829a9d8311
commit
db3d9b551a
@ -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)');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user