mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 05:05:42 +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