I have a problem with the jquery sortable plugin. Indeed, I have items (questions) which use both accordion and sortable.
I use the update event of sortable to show extra content in each question accordion.
But my problem is that after sorting the questions, the accordion of the one I moved opens itself automatically.
Here is a simple example which reproduces the problem : http://jsfiddle.net/JwzH2/1/
Try to sort the questions, and you'll see the accordion opening itself (it might work correctly sometimes, so try again).
Do someone have an idea on how to fix it ?
EDIT : Fosco gave me a partially working solution, but there is still a problem => it does not work on dynamically added elements (see my comments on his answer).
Moreover, I am still astonished seeing the code working without this line : $('.hidden-content', question).show();
. Indeed, the event propagation should be the same with and without this line