Advertisement
Guest User

Untitled

a guest
Jul 24th, 2014
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. return {
  2. acceptedFiles: "image/*", // *** NOT WORKING ***
  3. init: function () {
  4.  
  5. Dropzone.options.myDropzone = {
  6. init: function() {
  7. this.options.acceptedFiles = "image/*";
  8.  
  9. this.on("addedfile", function(file) {
  10. // Create the remove button
  11. var removeButton = Dropzone.createElement("<button class='btn btn-sm btn-block'>Remove file</button>");
  12.  
  13. // Capture the Dropzone instance as closure.
  14. var _this = this;
  15.  
  16. [...]
  17.  
  18. Dropzone.options.myDropzone = {
  19. acceptedFiles: "image/*",
  20. init: function(){ [..] }
  21.  
  22. Dropzone.options.myDropzone = {
  23. init: function(){
  24. this.options.acceptedFiles = "image/*"
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement