- if ( action === 'collapse' ) {
- // Hide all table rows of this table
- // Slide doesn't work with tables, but fade does as of jQuery 1.1.3
- // http://stackoverflow.com/questions/467336#920480
- if ( options.instantHide ) {
- $containers.hide();
- hookCallback();
- } else {
- $containers.stop( true, true ).fadeOut().promise().done( hookCallback );
- }
- } else {
- $containers.stop( true, true ).fadeIn().promise().done( hookCallback );
- }
-