mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Workaround for #4786
This commit is contained in:
parent
b2b82e07fb
commit
4f6dd319e9
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user