SECURITY: resources: Patch jQuery 3.3.1 for CVE-2019-11358
[lhc/web/wiklou.git] / resources / src / mediawiki.special.contributions.js
index 6558bda..fb81dd8 100644 (file)
@@ -1,4 +1,4 @@
-( function ( mw, $ ) {
+( function () {
 
        // Return a promise that is resolved when the element is blurred (loses focus).
        // If it already is blurred, resolved immediately.
                // date picker is open will cause the date picker to remain visible (but non-functional), but
                // not replacing the interface while the user is working with it is probably a good idea anyway.
                startReady = whenBlurred( $( '#mw-date-start .oo-ui-inputWidget-input' ) ).then( function () {
-                       return mw.widgets.DateInputWidget.static.infuse( 'mw-date-start' );
+                       return mw.widgets.DateInputWidget.static.infuse( $( '#mw-date-start' ) );
                } );
                endReady = whenBlurred( $( '#mw-date-end .oo-ui-inputWidget-input' ) ).then( function () {
-                       return mw.widgets.DateInputWidget.static.infuse( 'mw-date-end' );
+                       return mw.widgets.DateInputWidget.static.infuse( $( '#mw-date-end' ) );
                } );
 
                $.when( startReady, endReady ).then( function ( startInput, endInput ) {
@@ -35,4 +35,4 @@
                } );
        } );
 
-}( mediaWiki, jQuery ) );
+}() );