type = 'database'; } var item_id = '<?php echo $id; ?> '; // config for dropzone, id is camelCased. Dropzone.options.elabftwDropzone = { // i18n message to user dictDefaultMessage: '<?php echo _('Drop files here to upload'); ?> ', maxFilesize: '<?php echo Tools::returnMaxUploadSize(); ?> ', // MB init: function() { this.on("complete", function() { // reload the #filesdiv once the file is uploaded if (this.getUploadingFiles().length === 0 && this.getQueuedFiles().length === 0) { $("#filesdiv").load(type + '.php?mode=edit&id=' + item_id + ' #filesdiv', function() { // make the comment zone editable (fix issue #54) $('.thumbnail p.editable').editable('app/editinplace.php', { indicator : 'Saving...', id : 'id', name : 'filecomment', submit : 'Save', cancel : 'Cancel', style : 'display:inline'