Index: trunk/extensions/UsabilityInitiative/js/plugins/jquery.wikiEditor.toolbar.js |
— | — | @@ -484,23 +484,19 @@ |
485 | 485 | if ( show ) { |
486 | 486 | $section.fadeIn( 'fast' ); |
487 | 487 | dH = $section.outerHeight() - dH; |
488 | | - if ( 'toc' in context.modules ) { |
489 | | - context.modules.toc.$toc.animate({'height': "+="+dH}, $section.outerHeight() * 2); |
490 | | - } |
491 | | - $sections.animate( { 'height': $section.outerHeight() }, $section.outerHeight() * 2, function() { |
492 | | - $(this).css('overflow', 'visible').css('height', 'auto'); |
493 | | - context.fn.trigger( 'resize' ); |
494 | | - } ); |
| 488 | + $sections |
| 489 | + .animate( { 'height': $section.outerHeight() }, $section.outerHeight() * 2, function() { |
| 490 | + $(this).css( 'overflow', 'visible' ).css( 'height', 'auto' ); |
| 491 | + context.fn.trigger( 'resize' ); |
| 492 | + } ); |
495 | 493 | $(this).addClass( 'current' ); |
496 | 494 | } else { |
497 | | - $sections.css('height', $section.outerHeight() ) |
498 | | - .animate( { 'height': 0 }, $section.outerHeight() * 2, function() { |
499 | | - $(this).css('overflow', 'visible'); |
| 495 | + $sections |
| 496 | + .css( 'height', $section.outerHeight() ) |
| 497 | + .animate( { 'height': 'hide' }, $section.outerHeight() * 2, function() { |
| 498 | + $(this).css( 'overflow', 'visible' ); |
500 | 499 | context.fn.trigger( 'resize' ); |
501 | 500 | } ); |
502 | | - if ( 'toc' in context.modules ) { |
503 | | - context.modules.toc.$toc.animate({'height': "-="+$section.outerHeight()}, $section.outerHeight() * 2); |
504 | | - } |
505 | 501 | } |
506 | 502 | // Click tracking |
507 | 503 | if($.trackAction != undefined){ |
— | — | @@ -601,12 +597,7 @@ |
602 | 598 | var $section = s.$sections.find( '.section:visible' ); |
603 | 599 | if ( $section.size() ) { |
604 | 600 | $sections.animate( { 'height': $section.outerHeight() }, $section.outerHeight() * 2, function( ) { |
605 | | - if ( 'toc' in context.modules ) { |
606 | | - context.modules.toc.$toc.height( |
607 | | - context.$ui.find( '.wikiEditor-ui-left' ) |
608 | | - .outerHeight() - context.$ui.find( '.tab-toc' ).outerHeight() |
609 | | - ) |
610 | | - } |
| 601 | + context.fn.trigger( 'resize' ); |
611 | 602 | } ); |
612 | 603 | } |
613 | 604 | } |