[Seaside] JQSortable with LI that I do not render myself

Mariano Martinez Peck marianopeck at gmail.com
Fri Jan 16 15:54:09 UTC 2015

Hi guys,

I have a html select list that then I convert to a UL / LI kind of list
using Bootstrap select: https://github.com/silviomoreto/bootstrap-select

I want to make it sortable (which I could) but I cannot correctly hook onto
the stop of the drop so that I can update my model/backend side.

I am trying to do something like:

html script:  ((html jQuery id: '#myULList')
onStop: (html jQuery ajax
                    callback: [ :values | values asOrderedCollection
inspect ]
                    passengers: (html jQuery this find: 'li')))

Basically...I need to get 'values' with my real objects. The problem is
that since I am not rendering the LI items myself (but bootstrap select
does), I cannot specify the passenger..I mean...I cannot do something like
"html listItem passenger: each"  or whatever...

Any ideas how can I make it work?

Thanks in advance,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20150116/12ff5a6a/attachment.htm

More information about the seaside mailing list