jQueryUI Sortable Events - Start & Stop
Hi everyone,
I need to minimize the widgets on my page on start and maximize them on stop. However, it gets fired several times and throws infinite errors. Please see this page:
http://www.kimburda.com/Paul-Bakaus
- function onSortableStart(){
- alert("Hello World!");
- //$(".widget .w-minimize").trigger("click");
- }
-
- $("#sortable").sortable({
- placeholder: 'ui-state-highlight',
- handle: '.w-header',
- opacity: 0.6,
- revert: 150,
- update: updateLayoutManager,
- start: onSortableStart
- });
I removed this piece of code from the live site but you can test it with firebug.
Thanks in advance.