thedigicraft / Atom.CMS

Atom.CMS
56 stars 50 forks source link

Dropzone.js #202

Open harmansoft opened 8 years ago

harmansoft commented 8 years ago

Hi I have an issue with dropzone.js. it gives me this error: Uncaught Error: Dropzone already attached. i searched a lot but nothing worked so i made temporary solution and at line 426 dropzone.js i change some codes like this:

if (this.element.dropzone) {
        throw new Error("Dropzone already attached.");
}

i replaced this line : throw new Error("Dropzone already attached."); with this: return this.element.dropzone; and it's working and i don't know why

creptor commented 8 years ago

Check this link, it shows how to enable the dropzone http://www.dropzonejs.com/#usage http://www.dropzonejs.com/#create-dropzones-programmatically