]> source.dussan.org Git - jquery-ui.git/commitdiff
Accordion demo: Refresh accordion after sorting
authorScott González <scott.gonzalez@gmail.com>
Wed, 23 Apr 2014 17:50:49 +0000 (13:50 -0400)
committerScott González <scott.gonzalez@gmail.com>
Wed, 23 Apr 2014 17:50:49 +0000 (13:50 -0400)
demos/accordion/sortable.html

index 8f48ef98033bc5e4f875d5b978b137dc9672533e..f60dff087bedf8ffa3dc61bb3622a2b62ff64fbe 100644 (file)
@@ -28,6 +28,9 @@
                                        // IE doesn't register the blur when sorting
                                        // so trigger focusout handlers to remove .ui-state-focus
                                        ui.item.children( "h3" ).triggerHandler( "focusout" );
+
+                                       // Refresh accordion to handle new order
+                                       $( this ).accordion( "refresh" );
                                }
                        });
        });