aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--demos/accordion/sortable.html12
1 files changed, 11 insertions, 1 deletions
diff --git a/demos/accordion/sortable.html b/demos/accordion/sortable.html
index d0db57895..05da11310 100644
--- a/demos/accordion/sortable.html
+++ b/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>