Live update of Company image

This commit is contained in:
Oliver 2021-06-23 19:29:41 +10:00
parent 70a073be21
commit f0db9bc3d5

View File

@ -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();
}
} }
} }
); );