[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
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
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...
More information about the seaside