mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-04 12:40:57 +00:00
Reset modal image when a new image is uploaded
This commit is contained in:
@ -158,6 +158,12 @@
|
||||
function reloadImage(data) {
|
||||
if (data.image) {
|
||||
$('#company-image').attr('src', data.image);
|
||||
|
||||
// Reset the "modal image" view
|
||||
$('#company-image').click(function() {
|
||||
showModalImage(data.image);
|
||||
});
|
||||
|
||||
} else {
|
||||
location.reload();
|
||||
}
|
||||
|
Reference in New Issue
Block a user