allow collection's page list to be drag/drop sortable

Bug #1320716 reported by Robert Lyon on 2014-05-19
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Robert Lyon

Bug Description

The list page for a collection on Portfolio -> Collections -> manage pages (cog icon), eg: collection/views.php?id=1, does not allow for drag/drop sorting of the list.

This would be better if one could drag/drop the row to where it is wanted rather than having to click on the up/down arrow keys a bunch of times to get the item in the right place.

This was a wishlist item requested by a community member.

Seen as we are already using jquery and jquery-ui we might as well take advantage of the sortable function available.

Robert Lyon (robertl-9) on 2014-05-19
Changed in mahara:
importance: Medium → Wishlist

Thanks Robert.

Aaron Wells (u-aaronw) wrote :

This is a step in the right direction.

Although, I think it's only half-complete, because now I find that I also want to drag pages from the "Add pages to collection" area into the list, but that's still a 2-click process. So, we should think about making the add/remove pages process draggable as well.

Robert Lyon (robertl-9) wrote :

Have updated the patch to allow for the dragging of pages from 'add pages ...' section to the collection as well

Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit e3d38601d1aa84eda6a7d029507a816b67988bec
Author: Robert Lyon <email address hidden>
Date: Mon May 19 12:28:12 2014 +1200

Allow collection's pages list to be added/edited by drag/drop (Bug #1320716)

You can now alter the sorting of the list by dragging the page name to
a new position.

You can also add in new pages to the collection by dragging them in
from the 'add pages to collection' list. If there are no existing
pages in collection you need to drop a page onto the 'No pages' grey

Also added touch-punch js lib to allow for the drag/drop to work as
well on mobile devices.

Change-Id: Id1af83abc50b76a7a8d56da8767ed4ce0ef76f77
Signed-off-by: Robert Lyon <email address hidden>

Changed in mahara:
status: In Progress → Fix Committed
tags: added: nominatedfeature
Aaron Wells (u-aaronw) on 2014-10-21
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers