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