Tabs: update sortable demo to call refresh method. Fixes #4524 Tabs: Sortable demo causes bad index references

This commit is contained in:
David Petersen 2011-04-27 20:38:59 -04:00 committed by Scott González
parent 09faa7c9fa
commit c3d9bd0700

View File

@ -13,7 +13,13 @@
<link rel="stylesheet" href="../demos.css">
<script>
$(function() {
$( "#tabs" ).tabs().find( ".ui-tabs-nav" ).sortable({ axis: "x" });
var tabs = $( "#tabs" ).tabs();
tabs.find( ".ui-tabs-nav" ).sortable({
axis: "x",
stop: function() {
tabs.tabs( "refresh" );
}
});
});
</script>
</head>