aboutsummaryrefslogtreecommitdiffstats
path: root/demos/accordion
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2009-08-18 19:22:25 +0000
committerJörn Zaefferer <joern.zaefferer@gmail.com>2009-08-18 19:22:25 +0000
commit4f6dd319e94c4d052a1b3c26d294d4e466ee3e22 (patch)
tree070d34132a4caaff26171173e76ad89344244b63 /demos/accordion
parentb2b82e07fbfd95ae68a1f1af2fe208e951f8704e (diff)
downloadjquery-ui-4f6dd319e94c4d052a1b3c26d294d4e466ee3e22.tar.gz
jquery-ui-4f6dd319e94c4d052a1b3c26d294d4e466ee3e22.zip
Workaround for #4786
Diffstat (limited to 'demos/accordion')
-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>