commit acb253747481e2dc6db7b7ca3adb554b822f1930
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: I3e8ffac31cc869c545e85c5f53c3e710e2e71243
Signed-off-by: Robert Lyon <email address hidden>
Signed-off-by: Aaron Wells <email address hidden>
(cherry picked from commit 52770f8baf2297d9cbf5506e2696b346fae8f419)
Reviewed: https:/ /reviews. mahara. org/5686 /git.mahara. org/mahara/ mahara/ commit/ acb253747481e2d c6db7b7ca3adb55 4b822f1930
Committed: https:/
Submitter: Robert Lyon (<email address hidden>)
Branch: 15.10_STABLE
commit acb253747481e2d c6db7b7ca3adb55 4b822f1930
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 9cbf5506e2696b3 46fae8f419)
Signed-off-by: Robert Lyon <email address hidden>
Signed-off-by: Aaron Wells <email address hidden>
(cherry picked from commit 52770f8baf2297d