X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=resources%2Fsrc%2Fmediawiki.action%2Fmediawiki.action.edit.preview.js;h=af4b8976f472df4cbefc90b4a386174a3cd7c4b9;hb=466085b74b4071783a2a9663caac8744134de207;hp=363b494740bf8c210f2261041af58c4c891b68c7;hpb=2cf4a2c2966d5679cd8935a0807bba1fe21a7381;p=lhc%2Fweb%2Fwiklou.git diff --git a/resources/src/mediawiki.action/mediawiki.action.edit.preview.js b/resources/src/mediawiki.action/mediawiki.action.edit.preview.js index 363b494740..af4b8976f4 100644 --- a/resources/src/mediawiki.action/mediawiki.action.edit.preview.js +++ b/resources/src/mediawiki.action/mediawiki.action.edit.preview.js @@ -73,6 +73,8 @@ // Can't use fadeTo because it calls show(), and we might want to keep some elements hidden // (e.g. empty #catlinks) + // FIXME: Use CSS transition + // eslint-disable-next-line no-jquery/no-animate $copyElements.animate( { opacity: 0.4 }, 'fast' ); api = new mw.Api(); @@ -143,13 +145,12 @@ } if ( response.parse.modules ) { mw.loader.load( response.parse.modules.concat( - response.parse.modulescripts, response.parse.modulestyles ) ); } newList = []; - // eslint-disable-next-line jquery/no-each-util + // eslint-disable-next-line no-jquery/no-each-util $.each( response.parse.indicators, function ( name, indicator ) { newList.push( $( '
' ) @@ -189,7 +190,7 @@ .append( $( '' ) .attr( { href: mw.util.getUrl( template.title ), - 'class': ( template.exists ? '' : 'new' ) + class: ( template.exists ? '' : 'new' ) } ) .text( template.title ) ); @@ -258,6 +259,8 @@ mw.hook( 'wikipage.editform' ).fire( $editform ); } ).always( function () { $spinner.hide(); + // FIXME: Use CSS transition + // eslint-disable-next-line no-jquery/no-animate $copyElements.animate( { opacity: 1 }, 'fast' ); @@ -297,7 +300,7 @@ if ( !document.getElementById( 'p-lang' ) && document.getElementById( 'p-tb' ) && mw.config.get( 'skin' ) === 'vector' ) { $( '.portal:last' ).after( $( '
' ).attr( { - 'class': 'portal', + class: 'portal', id: 'p-lang', role: 'navigation', 'aria-labelledby': 'p-lang-label'