mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Live update of Company image
This commit is contained in:
parent
70a073be21
commit
f0db9bc3d5
@ -144,7 +144,12 @@
|
||||
label: 'image',
|
||||
method: 'PATCH',
|
||||
success: function(data, status, xhr) {
|
||||
location.reload();
|
||||
|
||||
if (data.image) {
|
||||
$('#company-image').attr('src', data.image);
|
||||
} else {
|
||||
location.reload();
|
||||
}
|
||||
}
|
||||
}
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user