diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2009-08-18 19:22:25 +0000 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2009-08-18 19:22:25 +0000 |
commit | 4f6dd319e94c4d052a1b3c26d294d4e466ee3e22 (patch) | |
tree | 070d34132a4caaff26171173e76ad89344244b63 /demos/accordion | |
parent | b2b82e07fbfd95ae68a1f1af2fe208e951f8704e (diff) | |
download | jquery-ui-4f6dd319e94c4d052a1b3c26d294d4e466ee3e22.tar.gz jquery-ui-4f6dd319e94c4d052a1b3c26d294d4e466ee3e22.zip |
Workaround for #4786
Diffstat (limited to 'demos/accordion')
-rw-r--r-- | demos/accordion/sortable.html | 12 |
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> |