From: Mark A. Hershberger Date: Sun, 26 Jun 2011 20:00:20 +0000 (+0000) Subject: Followup r90239: Move return till after the toggle is executed. X-Git-Tag: 1.31.0-rc.0~29262 X-Git-Url: http://git.cyclocoop.org/wiki/Target_page?a=commitdiff_plain;h=a0d7b9b71c7fa1ad6cfb439b49999dd443bcbd69;p=lhc%2Fweb%2Fwiklou.git Followup r90239: Move return till after the toggle is executed. --- diff --git a/resources/jquery/jquery.makeCollapsible.js b/resources/jquery/jquery.makeCollapsible.js index 445213ebe4..a84f405cee 100644 --- a/resources/jquery/jquery.makeCollapsible.js +++ b/resources/jquery/jquery.makeCollapsible.js @@ -176,10 +176,10 @@ $.fn.makeCollapsible = function() { }, // Toggles collapsible and togglelink class toggleLinkPremade = function( $that, e ) { + var $collapsible = $that.eq(0).closest( '.mw-collapsible.mw-made-collapsible' ).toggleClass( 'mw-collapsed' ); if ( $(e.target).is('a') ) { return true; } - var $collapsible = $that.eq(0).closest( '.mw-collapsible.mw-made-collapsible' ).toggleClass( 'mw-collapsed' ); e.preventDefault(); e.stopPropagation();