SECURITY: resources: Patch jQuery 3.3.1 for CVE-2019-11358
[lhc/web/wiklou.git] / resources / src / mediawiki.special.pageLanguage.js
index 589182a..8b70e1f 100644 (file)
@@ -4,8 +4,8 @@
 ( function () {
        $( function () {
                // Select the 'Language select' option if user is trying to select language
-               OO.ui.infuse( 'mw-pl-languageselector' ).on( 'change', function () {
-                       OO.ui.infuse( 'mw-pl-options' ).setValue( '2' );
+               OO.ui.infuse( $( '#mw-pl-languageselector' ) ).on( 'change', function () {
+                       OO.ui.infuse( $( '#mw-pl-options' ) ).setValue( '2' );
                } );
        } );
 }() );