Fix dropzone localization #972

Merged
merged 3 commits into from Dec 12, 2016

Projects

None yet

4 participants

@dregad
Member
dregad commented Dec 5, 2016

Fixes #21925

js/common.js
- var zone = new Dropzone( "." + classPrefix + "-form", {
+ var formClass = "." + classPrefix + "-form";
+ var form = $( formClass );
+ var zone = new Dropzone( formClass, {
forceFallback: $(this).data('force-fallback'),
@syncguru
syncguru Dec 5, 2016 Contributor

Should we remove this $(this) here too?

js/common.js
- var zone = new Dropzone( "." + classPrefix + "-form", {
+ var formClass = "." + classPrefix + "-form";
+ var form = $( formClass );
+ var zone = new Dropzone( formClass, {
forceFallback: $(this).data('force-fallback'),
@badfiles
badfiles Dec 5, 2016 Contributor

you've missed this line

@vboctor vboctor merged commit ef248e9 into mantisbt:master Dec 12, 2016

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
@dregad dregad deleted the dregad:f20-21925-dropzone-l10n branch Dec 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment