21.6.3Drag and Drop
Drag and Drop list items with jQuery
ToDoListView>>renderContentOn: html
self renderHeadingOn: html.
html form:
[(html unorderedList)
id: (listId := html nextId);
script: ((html jQuery new sortable)
onStop: (html jQuery ajax
callback: [:items | self model items: items]
passengers: (html jQuery this find: 'li'));
axis: 'y');
with: [self renderItemsOn: html].
"html submitButton text: 'Save'."
(html submitButton)
callback: [self add];
text: 'Add'].
html render: editor