{"action":"closed","issue":{"url":"https://api.github.com/repos/enyo/dropzone/issues/1080","labels_url":"https://api.github.com/repos/enyo/dropzone/issues/1080/labels{/name}","comments_url":"https://api.github.com/repos/enyo/dropzone/issues/1080/comments","events_url":"https://api.github.com/repos/enyo/dropzone/issues/1080/events","html_url":"https://github.com/enyo/dropzone/issues/1080","id":109545881,"number":1080,"title":"Event listener for all files deleted from the queue","user":{"login":"gusta21","id":14811630,"avatar_url":"https://avatars.githubusercontent.com/u/14811630?v=3","gravatar_id":"","url":"https://api.github.com/users/gusta21","html_url":"https://github.com/gusta21","followers_url":"https://api.github.com/users/gusta21/followers","following_url":"https://api.github.com/users/gusta21/following{/other_user}","gists_url":"https://api.github.com/users/gusta21/gists{/gist_id}","starred_url":"https://api.github.com/users/gusta21/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gusta21/subscriptions","organizations_url":"https://api.github.com/users/gusta21/orgs","repos_url":"https://api.github.com/users/gusta21/repos","events_url":"https://api.github.com/users/gusta21/events{/privacy}","received_events_url":"https://api.github.com/users/gusta21/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-02T18:26:50Z","updated_at":"2015-10-02T21:18:18Z","closed_at":"2015-10-02T21:18:18Z","body":"Hello everyone, i hope you can understand my english...\r\n\r\nI´m using dropzone and uploading files once at a time, because this way i can rename it based on the already names stored on the database. Also i have 2 aditional buttons. One for Next Step and other for Upload all files (autoupload is disable)\r\n\r\nWhen files are added i use \"addedfile\" for enable the \"upload button\" and disable the \"next button\". Also use \"queuecomplete\" for enable \"next button\" and disable the upload button.\r\n\r\nWhen files are added, and for some season the user deletes all one by one, the \"next button\" is disable, because i disable it when addedfile but i cant enable it because the \"reset\" event (wich i think is the event i need) is not responding.\r\n\r\nHere is my code: \r\n\r\n<pre lang=\"javascript\"><code>\r\nDropzone.options.myDropzone = {\r\n\r\n    autoProcessQueue: false,\r\n\tmaxFiles: 10,\r\n\r\n  \tinit: function() {\r\n\t\tvar _this = this; \r\n\t\tvar selectFile = document.querySelector(\"#SelectFile\");\r\n    \tselectFile.addEventListener(\"click\", function () {\r\n      \t_this.hiddenFileInput.click();\r\n    });\r\n\t\r\n    var submitButton = document.querySelector(\"#submit-all\")\r\n        myDropzone = this; // closure\r\n\r\n    submitButton.addEventListener(\"click\", function() {\r\n      myDropzone.processQueue(); // Tell Dropzone to process all queued files.\r\n    \r\n\t});\r\n\tdocument.getElementById(\"submit-all\").disabled = true;\r\n    \r\n\tthis.on(\"processing\", function() {\r\n    this.options.autoProcessQueue = true;\r\n});\r\n    \r\n\tthis.on(\"queuecomplete\", function() {\r\n     this.options.autoProcessQueue = false;\r\n    });\r\n\t\r\n\tthis.on(\"addedfile\", function() {\r\n     document.getElementById(\"submit-all\").disabled = false;\r\n\t document.getElementById(\"siguiente\").disabled = true;\r\n    });\r\n\t\r\n\tthis.on(\"queuecomplete\", function() {\r\n     document.getElementById(\"siguiente\").disabled = false;\r\n\t document.getElementById(\"submit-all\").disabled = true;\r\n    });\r\n\t\r\n\tthis.on(\"removedfile\", function() {\r\n     document.getElementById(\"siguiente\").disabled = false;\r\n\t document.getElementById(\"submit-all\").disabled = true;\r\n    });\r\n\t\r\n\tthis.on(\"maxfilesexceeded\", function(file){\r\n        \talert(\"Cantidad máxima de imagenes alcanzada! Elimine algunas para liberar espacio.\");\r\n\t\t\tthis.removeFile(file);\r\n\t\t\t\r\n        });\r\n  }\r\n};\r\n\r\nfunction antesdecerrar()\r\n\t{\r\n    if (salir==true)\r\n    {\r\n        return 'Aún hay imagenes esperando a ser cargadas. Si cierra la ventana no se cargarán!';\r\n    }\r\n};\r\n</code></pre>"}}