commit 52770f8baf2297d9cbf5506e2696b346fae8f419
Author: Robert Lyon <email address hidden>
Date: Fri Oct 30 12:26:48 2015 +1300
Bug 1511536: problem with deleting blocks when edit page first loads
The problem is due to the scope of the blockinstanceId variable being
outside of the click handler function, which inadvertently makes it
into a sort of static variable shared by all of the delete buttons.
So the solution is to use a locally-scoped blockinstanceId button
inside the click handler method.
Reviewed: https:/ /reviews. mahara. org/5646 /git.mahara. org/mahara/ mahara/ commit/ 52770f8baf2297d 9cbf5506e2696b3 46fae8f419
Committed: https:/
Submitter: Aaron Wells (<email address hidden>)
Branch: master
commit 52770f8baf2297d 9cbf5506e2696b3 46fae8f419
Author: Robert Lyon <email address hidden>
Date: Fri Oct 30 12:26:48 2015 +1300
Bug 1511536: problem with deleting blocks when edit page first loads
The problem is due to the scope of the blockinstanceId variable being
outside of the click handler function, which inadvertently makes it
into a sort of static variable shared by all of the delete buttons.
So the solution is to use a locally-scoped blockinstanceId button
inside the click handler method.
Change-Id: I3e8ffac31cc869 c545e85c5f53c3e 710e2e71243
Signed-off-by: Robert Lyon <email address hidden>
Signed-off-by: Aaron Wells <email address hidden>