Skip to content

Commit

Permalink
MDL-47494 ddimageortext: Solve error when showing more than one quest…
Browse files Browse the repository at this point in the history
…ion in the same page
  • Loading branch information
crazyserver committed Mar 16, 2015
1 parent d804067 commit c5091dc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ Y.extend(DDIMAGEORTEXT_QUESTION, M.qtype_ddimageortext.dd_base_class, {
false, 0, this.create_all_drag_and_drops);
this.doc.drag_item_homes().after('load', this.poll_for_image_load, this,
false, 0, this.create_all_drag_and_drops);
Y.later(500, this, this.reposition_drags_for_question, [pendingid], true);
Y.later(500, this, this.reposition_drags_for_question, [this.pendingid], true);
},
create_all_drag_and_drops : function () {
this.init_drops();
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ Y.extend(DDIMAGEORTEXT_QUESTION, M.qtype_ddimageortext.dd_base_class, {
false, 0, this.create_all_drag_and_drops);
this.doc.drag_item_homes().after('load', this.poll_for_image_load, this,
false, 0, this.create_all_drag_and_drops);
Y.later(500, this, this.reposition_drags_for_question, [pendingid], true);
Y.later(500, this, this.reposition_drags_for_question, [this.pendingid], true);
},
create_all_drag_and_drops : function () {
this.init_drops();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ Y.extend(DDIMAGEORTEXT_QUESTION, M.qtype_ddimageortext.dd_base_class, {
false, 0, this.create_all_drag_and_drops);
this.doc.drag_item_homes().after('load', this.poll_for_image_load, this,
false, 0, this.create_all_drag_and_drops);
Y.later(500, this, this.reposition_drags_for_question, [pendingid], true);
Y.later(500, this, this.reposition_drags_for_question, [this.pendingid], true);
},
create_all_drag_and_drops : function () {
this.init_drops();
Expand Down

0 comments on commit c5091dc

Please sign in to comment.