mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-03-30 19:10:14 +02:00
Fix Dropzone per readonly
This commit is contained in:
parent
4a428ac9c3
commit
f032b4a381
@ -229,7 +229,12 @@ class FileManager implements ManagerInterface
|
|||||||
Dropzone.autoDiscover = false;
|
Dropzone.autoDiscover = false;
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
var dragdrop = new Dropzone("#'.$attachment_id.' .dropzone", {
|
let dropzone_id = "#'.$attachment_id.' .dropzone";
|
||||||
|
if ($(dropzone_id).length == 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
let dragdrop = new Dropzone(dropzone_id, {
|
||||||
dictDefaultMessage: "'.tr('Clicca o trascina qui per caricare uno o più file').'.<br>('.tr('Max upload: _SIZE_', [
|
dictDefaultMessage: "'.tr('Clicca o trascina qui per caricare uno o più file').'.<br>('.tr('Max upload: _SIZE_', [
|
||||||
'_SIZE_' => $upload_max_filesize.' MB',
|
'_SIZE_' => $upload_max_filesize.' MB',
|
||||||
]).')",
|
]).')",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user