[p2pu-dev] A long way to go for sorting tasks

Alison Cole alison at p2pu.org
Tue Feb 7 18:35:20 UTC 2012


Sounds like there's enough understanding amongst ya'll to make this happen.
Any takers?

I will bake 2 dozen virtual cookies and make a public blog post thanking
you for it.

ALISON



On Wed, Feb 1, 2012 at 2:15 PM, Dan Diebolt <dandiebolt at gmail.com> wrote:

> Actually the client side library (jQuery UI sortable) needed to allow
> sorting of the task items is already delivered in the course page and to
> invoke it you only need this one additional statement:
>
> $("#content-pages ul").sortable()
>
> Type this command into the console and you can sort the tasks by dragging
> and dropping.
>
> The problem is that more work would be needed in the back end to save the
> new sorted order of the tasks via an Ajax call without reloading the page.
> As it stands now you only have support for moving an individual task up or
> down one step and the URL reloads the page:
>
> http://p2pu.org/en/groups/lernanatron/content/index/2/up/
> http://p2pu.org/en/groups/lernanatron/content/index/3/up/
> http://p2pu.org/en/groups/lernanatron/content/index/4/down/
>
> What I do to get around these limitations like this is to code all my
> interface modifications in a GreaseMonkey script so they automatically get
> applied when the page loads.
>
> _______________________________________________
> p2pu-dev mailing list
> p2pu-dev at lists.p2pu.org
> http://lists.p2pu.org/mailman/listinfo/p2pu-dev
>
>


-- 

Alison
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.p2pu.org/pipermail/p2pu-dev/attachments/20120207/33244bc0/attachment.html>


More information about the p2pu-dev mailing list