Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Commit

Permalink
fixes #11 turns off dropzone's autodiscover feature
Browse files Browse the repository at this point in the history
  • Loading branch information
cdowdy committed Jun 27, 2017
1 parent 14b5d22 commit 93af2ee
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions web/tinypng.optimize.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
Dropzone.autoDiscover = false;

$(document).ready(function () {

/**
Expand Down Expand Up @@ -290,7 +292,7 @@ $(document).ready(function () {
*
* @type {{paramName: string, acceptedFiles: string, thumbnailWidth: number, thumbnailHeight: null, previewTemplate: string, addRemoveLinks: boolean, accept: Dropzone.options.tinypngUploadForm.accept, init: Dropzone.options.tinypngUploadForm.init}}
*/
Dropzone.options.tinypngUploadForm = {
$('#tinypng_upload_form').dropzone({
paramName: "tnypng_file", // The name that will be used to transfer the file
// maxFilesize: 2, // MB
acceptedFiles: 'image/png,image/jpeg',
Expand Down Expand Up @@ -343,7 +345,7 @@ $(document).ready(function () {
errorContainer.text(errorMessage).addClass("alert alert-danger");
});
}
};
});

});

Expand Down

0 comments on commit 93af2ee

Please sign in to comment.