BigW Consortium Gitlab

Commit cfde0936 by Dmitriy Zaporozhets

Merge branch 'file-upload-bugfix' into 'master'

Bugfix for Multiple File Upload Dialogs Fixes issue #426, where a page with multiple dropzones can accidentally trigger multiple file upload dialogs when the user clicks the "selecting them" link. By specifying the closest "div-dropzone-wrapper" before sending a click to "div-dropzone", duplicate events are prevented from firing. See merge request !153
parents 72f50fcb 824821b4
......@@ -179,7 +179,7 @@ $(document).ready ->
$(".markdown-selector").click (e) ->
e.preventDefault()
$(".div-dropzone").click()
$(@).closest(".div-dropzone-wrapper").find(".div-dropzone").click()
return
return
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment