Index: trunk/phase3/resources/jquery/jquery.makeCollapsible.js |
— | — | @@ -19,7 +19,7 @@ |
20 | 20 | $.fn.makeCollapsible = function() { |
21 | 21 | |
22 | 22 | return this.each(function() { |
23 | | - mw.config.set( 'mw.log.prefix', 'jquery.makeCollapsible' ); |
| 23 | + var _fn = 'jquery.makeCollapsible> '; |
24 | 24 | |
25 | 25 | // Define reused variables and functions |
26 | 26 | var $that = $(this).addClass( 'mw-collapsible' ), // case: $( '#myAJAXelement' ).makeCollapsible() |
— | — | @@ -228,7 +228,7 @@ |
229 | 229 | |
230 | 230 | var thatId = $that.attr( 'id' ), |
231 | 231 | $customTogglers = $( '.' + thatId.replace( 'mw-customcollapsible', 'mw-customtoggle' ) ); |
232 | | - mw.log( 'Found custom collapsible: #' + thatId ); |
| 232 | + mw.log( _fn + 'Found custom collapsible: #' + thatId ); |
233 | 233 | |
234 | 234 | // Double check that there is actually a customtoggle link |
235 | 235 | if ( $customTogglers.size() ) { |
— | — | @@ -236,7 +236,7 @@ |
237 | 237 | toggleLinkCustom( $(this), e, $that ); |
238 | 238 | } ); |
239 | 239 | } else { |
240 | | - mw.log( '#' + thatId + ': Missing toggler!' ); |
| 240 | + mw.log( _fn + '#' + thatId + ': Missing toggler!' ); |
241 | 241 | } |
242 | 242 | |
243 | 243 | // Initial state |