提交 cfde0936 编写于 作者: D 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
......@@ -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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册