X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=resources%2Fsrc%2Fmediawiki.special.apisandbox%2Fapisandbox.js;h=83a39d477d5830823332a512b13f511dad6e6d92;hb=082f16e322919f997ce20b75f5ca15d231c63ee3;hp=3762ae73ce3716e636782c419e32bd0e02bf9eef;hpb=7ed0113e3fc53245e248d616f94246745ea2f67e;p=lhc%2Fweb%2Fwiklou.git diff --git a/resources/src/mediawiki.special.apisandbox/apisandbox.js b/resources/src/mediawiki.special.apisandbox/apisandbox.js index 3762ae73ce..83a39d477d 100644 --- a/resources/src/mediawiki.special.apisandbox/apisandbox.js +++ b/resources/src/mediawiki.special.apisandbox/apisandbox.js @@ -977,6 +977,7 @@ // OO.ui.ButtonWidget doesn't take focus itself (T128054) $focus = $( '#mw-apisandbox-ui' ).find( document.activeElement ); if ( $focus.length ) { + // eslint-disable-next-line jquery/no-event-shorthand $focus[ 0 ].blur(); } @@ -1568,7 +1569,7 @@ // it makes it too hard to read and our "disabled" // isn't really disabled. widgetField.onFieldDisable( false ); - widgetField.onFieldDisable = $.noop; + widgetField.onFieldDisable = function () {}; widgetField.apiParamIndex = ppi.index; @@ -1756,7 +1757,7 @@ widget = Util.createWidgetForParameter( { name: name, type: 'string', - 'default': '' + default: '' }, { nooptional: true } ); @@ -1943,6 +1944,7 @@ } that.deprecatedItemsFieldset = new OO.ui.FieldsetLayout().addItems( deprecatedItems ).toggle( false ); + // eslint-disable-next-line jquery/no-animate-toggle tmp = $( '
' ) .toggle( !that.deprecatedItemsFieldset.isEmpty() ) .append(