mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-27 09:00:04 +00:00
build: Update linters
Change-Id: I8b99db813f12dc2031b5a1c195e6480f5512792a
This commit is contained in:
parent
b4355e039f
commit
8634a77d0e
|
@ -143,12 +143,13 @@
|
|||
|
||||
// Remove the element from where it's at and put it in the dropdown menu
|
||||
target = outerData.collapsedContainer;
|
||||
// eslint-disable-next-line jquery/no-animate
|
||||
$moving.css( 'position', 'relative' )
|
||||
.css( ( isRTL ? 'left' : 'right' ), 0 )
|
||||
.animate( { width: '1px' }, 'normal', function () {
|
||||
$( this ).hide();
|
||||
// add the placeholder
|
||||
$( '<span class="placeholder" style="display: none;"></span>' ).insertAfter( this );
|
||||
$( '<span>' ).addClass( 'placeholder' ).css( 'display', 'none' ).insertAfter( this );
|
||||
$( this ).detach().prependTo( target ).data( 'collapsibleTabsSettings', outerData );
|
||||
$( this ).attr( 'style', 'display: list-item;' );
|
||||
expContainerSettings.shifting = false;
|
||||
|
@ -174,6 +175,7 @@
|
|||
expandedWidth = data.expandedWidth;
|
||||
$moving.css( 'position', 'relative' ).css( ( isRTL ? 'right' : 'left' ), 0 ).css( 'width', '1px' );
|
||||
$target.replaceWith(
|
||||
// eslint-disable-next-line jquery/no-animate
|
||||
$moving
|
||||
.detach()
|
||||
.css( 'width', '1px' )
|
||||
|
|
|
@ -5,9 +5,9 @@
|
|||
"doc": "jsduck"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint-config-wikimedia": "0.9.0",
|
||||
"eslint-config-wikimedia": "0.10.0",
|
||||
"grunt": "1.0.3",
|
||||
"grunt-banana-checker": "0.6.0",
|
||||
"grunt-banana-checker": "0.7.0",
|
||||
"grunt-eslint": "21.0.0",
|
||||
"grunt-jsonlint": "1.1.0",
|
||||
"grunt-stylelint": "0.10.1",
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/**
|
||||
* Vector-specific scripts
|
||||
*/
|
||||
/* eslint-disable jquery/no-global-selector */
|
||||
$( function () {
|
||||
|
||||
/**
|
||||
|
@ -32,6 +33,7 @@ $( function () {
|
|||
// If the dropdown was hidden, show it
|
||||
if ( $cactions.hasClass( 'emptyPortlet' ) ) {
|
||||
$cactions.removeClass( 'emptyPortlet' );
|
||||
// eslint-disable-next-line jquery/no-animate
|
||||
$cactions.find( 'h3' )
|
||||
.css( 'width', '1px' )
|
||||
.animate( { width: initialCactionsWidth() }, 'normal' );
|
||||
|
@ -40,6 +42,7 @@ $( function () {
|
|||
.on( 'beforeTabExpand', function () {
|
||||
// If we're removing the last child node right now, hide the dropdown
|
||||
if ( $cactions.find( 'li' ).length === 1 ) {
|
||||
// eslint-disable-next-line jquery/no-animate
|
||||
$cactions.find( 'h3' ).animate( { width: '1px' }, 'normal', function () {
|
||||
$( this ).attr( 'style', '' )
|
||||
.parent().addClass( 'emptyPortlet' );
|
||||
|
|
Loading…
Reference in a new issue