replacing a block html after saving configuration needs to be done through gridstack functions

Bug #1898809 reported by Cecilia Vela Gurovic
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
21.10
Won't Fix
Medium
Unassigned

Bug Description

When replacing a block in the html after editing a block in a page
we need to do it by adding and removing a widget on the gridstack element, using the gridstack functions that come with the library.

The way we do it now, we are just replacing the content of the DOM. Which is not ideal, the grid needs to have all the elements registered as gridstack items so it can handle them.

Revision history for this message
Cecilia Vela Gurovic (ceciliavg) wrote :

this is a follow up of this report https://bugs.launchpad.net/mahara/+bug/1898478

Revision history for this message
Kristina Hoeppner (kris-hoeppner) wrote :

Setting to 21.10 only as we'll best upgrade to the latest Gridstack first as there are major changes.

no longer affects: mahara/19.10
no longer affects: mahara/21.04
no longer affects: mahara/20.10
no longer affects: mahara/20.04
no longer affects: mahara
Revision history for this message
Kristina Hoeppner (kris-hoeppner) wrote :

Some of that might be done in Gridstack 4. Leaving it in here to test.

Revision history for this message
Kristina Hoeppner (kris-hoeppner) wrote :

Won't fix at this stage as jQuery is more known in the team at the moment. Can come back to it later if needed.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.