Skip to content
Permalink
Browse files

Workaround for #4786

  • Loading branch information...
jzaefferer committed Aug 18, 2009
1 parent b2b82e0 commit 4f6dd319e94c4d052a1b3c26d294d4e466ee3e22
Showing with 11 additions and 1 deletion.
  1. +11 −1 demos/accordion/sortable.html
@@ -10,11 +10,21 @@
<link type="text/css" href="../demos.css" rel="stylesheet" />
<script type="text/javascript">
$(function() {
var stop = false;
$("#accordion h3").click(function(event) {
if (stop) {
event.stopImmediatePropagation();
stop = false;
}
});
$("#accordion").accordion({
header: "> div > h3"
}).sortable({
axis: "y",
handle: "h3"
handle: "h3",
stop: function(event, ui) {
stop = true;
}
});
});
</script>

0 comments on commit 4f6dd31

Please sign in to comment.
You can’t perform that action at this time.