diff options
author | David Petersen <public@petersendidit.com> | 2011-04-27 20:38:59 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2011-04-28 19:03:45 -0400 |
commit | c3d9bd070051a79e1a288935d420f85278268149 (patch) | |
tree | 2c53a26368d50a874879a181de5aafa86f2dce6f /demos/tabs | |
parent | 09faa7c9fa6d16313485d727e3943303c0181ebf (diff) | |
download | jquery-ui-c3d9bd070051a79e1a288935d420f85278268149.tar.gz jquery-ui-c3d9bd070051a79e1a288935d420f85278268149.zip |
Tabs: update sortable demo to call refresh method. Fixes #4524 Tabs: Sortable demo causes bad index references
Diffstat (limited to 'demos/tabs')
-rw-r--r-- | demos/tabs/sortable.html | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/demos/tabs/sortable.html b/demos/tabs/sortable.html index ba8196d71..c3e882791 100644 --- a/demos/tabs/sortable.html +++ b/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> |