// Add Drag and Drop to uploader helper

This commit is contained in:
Jerome Nadaud
2013-11-28 09:55:22 +01:00
parent 82022c337a
commit 510b71054a
3 changed files with 22 additions and 2 deletions
@@ -109,7 +109,8 @@
dataType: 'json',
autoUpload: false,
singleFileUploads: true,
maxFileSize: {$post_max_size},
{if isset($post_max_size)}maxFileSize: {$post_max_size},{/if}
{if isset($drop_zone)}dropZone: {$drop_zone},{/if}
start: function (e) {
{$id}_upload_button.start();
$('#{$id}-upload-button').unbind('click'); //Important as we bind it for every elements in add function