' )
.addClass( 'mw-rcfilters-ui-cell' )
.addClass( 'mw-rcfilters-ui-filterTagMultiselectWidget-cell-reset' )
@@ -225,7 +225,7 @@ FilterTagMultiselectWidget = function MwRcfiltersUiFilterTagMultiselectWidget( c
$( '
' )
.addClass( 'mw-rcfilters-ui-table' )
.addClass( 'mw-rcfilters-ui-filterTagMultiselectWidget-wrapper-filters' )
- .append( rcFiltersRow )
+ .append( $rcFiltersRow )
);
// Initialize
diff --git a/resources/src/mediawiki.special.apisandbox/apisandbox.js b/resources/src/mediawiki.special.apisandbox/apisandbox.js
index c2c59609e9c..a52f3ec2d51 100644
--- a/resources/src/mediawiki.special.apisandbox/apisandbox.js
+++ b/resources/src/mediawiki.special.apisandbox/apisandbox.js
@@ -1383,7 +1383,7 @@
* @return {OO.ui.FieldLayout} return.helpField
*/
ApiSandbox.PageLayout.prototype.makeWidgetFieldLayouts = function ( ppi, name ) {
- var j, l, widget, descriptionContainer, tmp, flag, count, button, widgetField, helpField, layoutConfig;
+ var j, l, widget, $descriptionContainer, tmp, $tmp, flag, count, button, widgetField, helpField, layoutConfig;
widget = Util.createWidgetForParameter( ppi );
if ( ppi.tokentype ) {
@@ -1393,20 +1393,20 @@
widget.on( 'change', this.updateTemplatedParameters, [ null ], this );
}
- descriptionContainer = $( '
' );
+ $descriptionContainer = $( '
' );
- tmp = Util.parseHTML( ppi.description );
- tmp.filter( 'dl' ).makeCollapsible( {
+ $tmp = Util.parseHTML( ppi.description );
+ $tmp.filter( 'dl' ).makeCollapsible( {
collapsed: true
} ).children( '.mw-collapsible-toggle' ).each( function () {
var $this = $( this );
$this.parent().prev( 'p' ).append( $this );
} );
- descriptionContainer.append( $( '
' ).addClass( 'description' ).append( tmp ) );
+ $descriptionContainer.append( $( '
' ).addClass( 'description' ).append( $tmp ) );
if ( ppi.info && ppi.info.length ) {
for ( j = 0; j < ppi.info.length; j++ ) {
- descriptionContainer.append( $( '
' )
+ $descriptionContainer.append( $( '
' )
.addClass( 'info' )
.append( Util.parseHTML( ppi.info[ j ] ) )
);
@@ -1422,7 +1422,7 @@
case 'limit':
if ( ppi.highmax !== undefined ) {
- descriptionContainer.append( $( '
' )
+ $descriptionContainer.append( $( '
' )
.addClass( 'info' )
.append(
Util.parseMsg(
@@ -1433,7 +1433,7 @@
)
);
} else {
- descriptionContainer.append( $( '
' )
+ $descriptionContainer.append( $( '
' )
.addClass( 'info' )
.append(
Util.parseMsg( 'api-help-param-limit', ppi.max ),
@@ -1453,7 +1453,7 @@
tmp += 'max';
}
if ( tmp !== '' ) {
- descriptionContainer.append( $( '
' )
+ $descriptionContainer.append( $( '
' )
.addClass( 'info' )
.append( Util.parseMsg(
'api-help-param-integer-' + tmp,
@@ -1487,41 +1487,41 @@
);
}
if ( tmp.length ) {
- descriptionContainer.append( $( '
' )
+ $descriptionContainer.append( $( '
' )
.addClass( 'info' )
.append( Util.parseHTML( tmp.join( ' ' ) ) )
);
}
}
if ( 'maxbytes' in ppi ) {
- descriptionContainer.append( $( '
' )
+ $descriptionContainer.append( $( '
' )
.addClass( 'info' )
.append( Util.parseMsg( 'api-help-param-maxbytes', ppi.maxbytes ) )
);
}
if ( 'maxchars' in ppi ) {
- descriptionContainer.append( $( '
' )
+ $descriptionContainer.append( $( '
' )
.addClass( 'info' )
.append( Util.parseMsg( 'api-help-param-maxchars', ppi.maxchars ) )
);
}
if ( ppi.usedTemplateVars && ppi.usedTemplateVars.length ) {
- tmp = $();
+ $tmp = $();
for ( j = 0, l = ppi.usedTemplateVars.length; j < l; j++ ) {
- tmp = tmp.add( $( '
' ).text( ppi.usedTemplateVars[ j ] ) );
+ $tmp = $tmp.add( $( '' ).text( ppi.usedTemplateVars[ j ] ) );
if ( j === l - 2 ) {
- tmp = tmp.add( mw.message( 'and' ).parseDom() );
- tmp = tmp.add( mw.message( 'word-separator' ).parseDom() );
+ $tmp = $tmp.add( mw.message( 'and' ).parseDom() );
+ $tmp = $tmp.add( mw.message( 'word-separator' ).parseDom() );
} else if ( j !== l - 1 ) {
- tmp = tmp.add( mw.message( 'comma-separator' ).parseDom() );
+ $tmp = $tmp.add( mw.message( 'comma-separator' ).parseDom() );
}
}
- descriptionContainer.append( $( '' )
+ $descriptionContainer.append( $( '
' )
.addClass( 'info' )
.append( Util.parseMsg(
'apisandbox-templated-parameter-reason',
ppi.usedTemplateVars.length,
- tmp
+ $tmp
) )
);
}
@@ -1533,7 +1533,7 @@
} ), {
align: 'inline',
classes: [ 'mw-apisandbox-help-field' ],
- label: descriptionContainer
+ label: $descriptionContainer
}
);
@@ -1784,7 +1784,7 @@
Util.fetchModuleInfo( this.apiModule )
.done( function ( pi ) {
- var prefix, i, j, tmp,
+ var prefix, i, j, tmp, $tmp,
items = [],
deprecatedItems = [],
buttons = [],
@@ -1858,11 +1858,11 @@
width: 'auto',
padded: true,
$content: $( '
' ).append( pi.examples.map( function ( example ) {
- var a = $( '' )
+ var $a = $( '' )
.attr( 'href', '#' + example.query )
.html( example.description );
- a.find( 'a' ).contents().unwrap(); // Can't nest links
- return $( '- ' ).append( a );
+ $a.find( 'a' ).contents().unwrap(); // Can't nest links
+ return $( '
- ' ).append( $a );
} ) )
}
} ) );
@@ -1939,7 +1939,7 @@
}
that.deprecatedItemsFieldset = new OO.ui.FieldsetLayout().addItems( deprecatedItems ).toggle( false );
- tmp = $( '