adaptation pour minio

This commit is contained in:
2022-08-31 11:20:22 +02:00
parent d2fde8a871
commit d539a2a740
23 changed files with 66 additions and 205 deletions

View File

@ -21,7 +21,7 @@
{% endif %}
<div id='preview' style='overflow:hidden; {{class}} position: absolute; top: 0px; right: 10px;'>
<img src="{{ appAlias }}uploads/{{type}}/{{ file }}" style='position: relative;' alt='Thumbnail Preview' />
<img src="{{ path('app_minio_image',{file:type~"/"~file}) }}" style='position: relative;' alt='Thumbnail Preview' />
</div>
<div style="width:100%; margin:65px auto 0px auto;">
@ -79,7 +79,7 @@
window.parent.location.reload();
{% elseif reportinput != "none" %}
window.parent.$("{{ reportinput }}").val("thumb_{{ file }}");
window.parent.$("{{ reportinput }}_img").attr("src","{{ path("app_minio_image",{file:"uploads/"~type~"/thumb_"~file}) }}");
window.parent.$("{{ reportinput }}_img").attr("src","{{ path("app_minio_image",{file:type~"/thumb_"~file}) }}");
{% endif %}
closeModal();
@ -105,7 +105,7 @@
resizewidth=$('#largeimg').width();
$('#largeimg').CropSelectJs({
imageSrc: "{{ appAlias }}uploads/{{type}}/{{ file }}",
imageSrc: "{{ path('app_minio_image',{file:type~"/"~file}) }}",
selectionResize: function(data) { resize(data); },
selectionMove: function(data) { move(data); },
});