Skip to content
Permalink
Browse files

Tabs: update sortable demo to call refresh method. Fixes #4524 Tabs: …

…Sortable demo causes bad index references
  • Loading branch information
petersendidit authored and scottgonzalez committed Apr 28, 2011
1 parent 09faa7c commit c3d9bd070051a79e1a288935d420f85278268149
Showing with 7 additions and 1 deletion.
  1. +7 −1 demos/tabs/sortable.html
@@ -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>

0 comments on commit c3d9bd0

Please sign in to comment.
You can’t perform that action at this time.