Follow-up 873d3c9ff: move new RC filters UI below the custom links
authorRoan Kattouw <roan.kattouw@gmail.com>
Thu, 5 Jan 2017 20:18:51 +0000 (12:18 -0800)
committerRoan Kattouw <roan.kattouw@gmail.com>
Thu, 5 Jan 2017 20:18:51 +0000 (12:18 -0800)
Wikis can add custom links, and these go between mw-specialpage-summary
and rcoptions. We want our UI to appear below these custom links, not above,
so insert it before rcoptions instead of after mw-specialpage-summary.

Change-Id: Ieacc054633046719bdc991c7f04d5eaa21a17189

resources/src/mediawiki.rcfilters/mw.rcfilters.init.js

index 8764e0a..5387ef2 100644 (file)
@@ -40,7 +40,7 @@
                                }
                        } );
 
-                       $( '.mw-specialpage-summary' ).after( widget.$element );
+                       $( '.rcoptions' ).before( widget.$element );
 
                        // Initialize values
                        controller.initialize();