Index: trunk/extensions/ArticleFeedback/modules/ext.articleFeedback/ext.articleFeedback.js |
— | — | @@ -311,8 +311,17 @@ |
312 | 312 | }; |
313 | 313 | |
314 | 314 | /* Load at the bottom of the article */ |
315 | | -$( '<div id="mw-articlefeedback"></div>' ).articleFeedback( config ).insertBefore( '#catlinks' ); |
| 315 | +var $aftDiv = $( '<div id="mw-articlefeedback"></div>' ).articleFeedback( config ); |
316 | 316 | |
| 317 | +// Put on bottom of article before #catlinks (if it exists) |
| 318 | +// Except in Classic, which has #catlinks above the article but inside content-div. |
| 319 | +if ( $( '#catlinks' ).length && mw.config.get( 'skin' ) != 'standard' ) { |
| 320 | + $aftDiv.insertBefore( '#catlinks' ); |
| 321 | +} else { |
| 322 | + // CologneBlue, Nostalgia, ... |
| 323 | + mw.util.$content.append( $aftDiv ); |
| 324 | +} |
| 325 | + |
317 | 326 | /* Add link so users can navigate to the feedback tool from the toolbox */ |
318 | 327 | var $tbAft = $( '<li id="t-articlefeedback"><a href="#mw-articlefeedback"></a></li>' ) |
319 | 328 | .find( 'a' ) |