Reviewed: https://reviews.mahara.org/5269 Committed: https://git.nzoss.org.nz/mahara/mahara/commit/a28956f75ff4a403edb041a29c59097a6ed4a2c5 Submitter: Robert Lyon (<email address hidden>) Branch: master
commit a28956f75ff4a403edb041a29c59097a6ed4a2c5 Author: Jen Zajac <email address hidden> Date: Mon Sep 14 12:41:49 2015 +1200
Fix edit page removal of new block
The dock's close button doesn't have the id in it needed to remove new (unsaved) blocks.
This fix passes the block id in, so the new block can be cleaned up when a user changes their mind and removes it before saving.
To test: add a new text block to a page, click the X icon in the top left of the dock, and observe that the new text block is removed from the page.
The delete buttons next to each on page item, and the cancel button within the dock, should both still function as before.
behatnotneeded
Bug 1465107
Change-Id: I81f3b43acce9203b8ada9b3f7ac9b6cacb80768c
Reviewed: https:/ /reviews. mahara. org/5269 /git.nzoss. org.nz/ mahara/ mahara/ commit/ a28956f75ff4a40 3edb041a29c5909 7a6ed4a2c5
Committed: https:/
Submitter: Robert Lyon (<email address hidden>)
Branch: master
commit a28956f75ff4a40 3edb041a29c5909 7a6ed4a2c5
Author: Jen Zajac <email address hidden>
Date: Mon Sep 14 12:41:49 2015 +1200
Fix edit page removal of new block
The dock's close button doesn't have the id in it
needed to remove new (unsaved) blocks.
This fix passes the block id in, so the new block
can be cleaned up when a user changes their mind
and removes it before saving.
To test: add a new text block to a page, click the
X icon in the top left of the dock, and observe
that the new text block is removed from the page.
The delete buttons next to each on page item, and
the cancel button within the dock, should both
still function as before.
behatnotneeded
Bug 1465107
Change-Id: I81f3b43acce920 3b8ada9b3f7ac9b 6cacb80768c