Skip to content
Permalink
Browse files

Dev: Issue #16026: Can't have multiple upload question on one page

Dev: unable to construct ....
  • Loading branch information
Shnoulle committed Mar 25, 2020
1 parent eddb549 commit 45480686b00816e3598ed67ebf57394843716af0
Showing with 1 addition and 1 deletion.
  1. +1 −1 assets/packages/questions/upload/src/modaldialog.js
@@ -15,7 +15,7 @@ class UploadQuestionController {
this.$el.dialog("close");
};

$(document).off('shown.bs.modal.lsuploadquestion');
$(document).off('shown.bs.modal.lsuploadquestion', '#file-upload-modal-' + this.fieldname);
$(document).on('shown.bs.modal.lsuploadquestion', '#file-upload-modal-' + this.fieldname, () => {
const uploadFrame = $('#uploader' + this.fieldname);
uploadFrame.load(uploadFrame.data('src'));

0 comments on commit 4548068

Please sign in to comment.
You can’t perform that action at this time.