]> source.dussan.org Git - jquery-ui.git/commitdiff
Tabs: update sortable demo to call refresh method. Fixes #4524 Tabs: Sortable demo...
authorDavid Petersen <public@petersendidit.com>
Thu, 28 Apr 2011 00:38:59 +0000 (20:38 -0400)
committerScott González <scott.gonzalez@gmail.com>
Thu, 28 Apr 2011 23:03:45 +0000 (19:03 -0400)
demos/tabs/sortable.html

index ba8196d71746b4f814d77bde9f134398a9a4cd38..c3e88279113b623878d0eba19e9599057f649323 100644 (file)
        <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>