From: Bartosz DziewoƄski Date: Wed, 27 Nov 2013 13:30:19 +0000 (+0100) Subject: jquery.makeCollapsible: Remove useless debug logging X-Git-Tag: 1.31.0-rc.0~17859^2 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/gestion/rappel_supprimer.php?a=commitdiff_plain;h=2a50911747f377d3eacb2f465fc6eb9987532fcb;p=lhc%2Fweb%2Fwiklou.git jquery.makeCollapsible: Remove useless debug logging Custom togglers are nowhere near exciting enough to log the fact that we're looking for them. Added ages ago in r78989 when this script was more hairy. Change-Id: Ieec216e5f203f4d808194733d96dcb3ebe9aaf9b --- diff --git a/resources/jquery/jquery.makeCollapsible.js b/resources/jquery/jquery.makeCollapsible.js index 30be2bdd6a..60c0afcd7b 100644 --- a/resources/jquery/jquery.makeCollapsible.js +++ b/resources/jquery/jquery.makeCollapsible.js @@ -15,8 +15,6 @@ * @license GPL2 */ ( function ( $, mw ) { - var lpx = 'jquery.makeCollapsible> '; - /** * Handler for a click on a collapsible toggler. * @@ -292,17 +290,11 @@ } else { collapsibleId = $collapsible.attr( 'id' ) || ''; if ( collapsibleId.indexOf( 'mw-customcollapsible-' ) === 0 ) { - mw.log( lpx + 'Found custom collapsible: #' + collapsibleId ); $customTogglers = $( '.' + collapsibleId.replace( 'mw-customcollapsible', 'mw-customtoggle' ) ); - - // Double check that there is actually a customtoggle link - if ( !$customTogglers.length ) { - mw.log( lpx + '#' + collapsibleId + ': Missing toggler!' ); - } } } - // Bind the togglers + // Add event handlers to custom togglers or create our own ones if ( $customTogglers && $customTogglers.length ) { actionHandler = function ( e, opts ) { var defaultOpts = {};