2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-20 22:06:28 +00:00

Add "modal image" display for part thumbnails

This commit is contained in:
Oliver Walters
2021-03-17 23:44:47 +11:00
parent db47629867
commit e3a5a56371
4 changed files with 99 additions and 0 deletions

View File

@ -206,6 +206,12 @@
toggleId: '#part-menu-toggle',
});
{% if part.image %}
$('#part-thumb').click(function() {
showModalImage('{{ part.image.url }}');
});
{% endif %}
enableDragAndDrop(
'#part-thumb',
"{% url 'part-image-upload' part.id %}",