Merge "build: Resolve suppressed eslint warnings"

isekai
jenkins-bot 8 years ago committed by Gerrit Code Review
commit 650f5a5425

@ -3,10 +3,5 @@
"env": { "env": {
"browser": true, "browser": true,
"jquery": true "jquery": true
},
"rules": {
"no-unused-vars": 0,
"quotes": 0,
"space-before-function-paren": 0
} }
} }

@ -1,39 +1,39 @@
/* Popout menus (header) */ /* Popout menus (header) */
$( function() { $( function () {
var toggleTime = 200; var toggleTime = 200;
// Open the various menus // Open the various menus
$( '#user-tools h2' ).on( 'click', function( e ) { $( '#user-tools h2' ).on( 'click', function () {
if ( $( window ).width() < 851 ) { if ( $( window ).width() < 851 ) {
$( '#personal-inner, #menus-cover' ).fadeToggle( toggleTime ); $( '#personal-inner, #menus-cover' ).fadeToggle( toggleTime );
} }
} ); } );
$( '#site-navigation h2' ).on( 'click', function( e ) { $( '#site-navigation h2' ).on( 'click', function () {
if ( $( window ).width() < 851 ) { if ( $( window ).width() < 851 ) {
$( '#site-navigation .sidebar-inner, #menus-cover' ).fadeToggle( toggleTime ); $( '#site-navigation .sidebar-inner, #menus-cover' ).fadeToggle( toggleTime );
} }
} ); } );
$( '#site-tools h2' ).on( 'click', function( e ) { $( '#site-tools h2' ).on( 'click', function () {
if ( $( window ).width() < 851 ) { if ( $( window ).width() < 851 ) {
$( '#site-tools .sidebar-inner, #menus-cover' ).fadeToggle( toggleTime ); $( '#site-tools .sidebar-inner, #menus-cover' ).fadeToggle( toggleTime );
} }
} ); } );
$( '#ca-more' ).on( 'click', function( e ) { $( '#ca-more' ).on( 'click', function () {
$( '#page-tools .sidebar-inner' ).css( "top", $( '#ca-more' ).offset().top + 25 ); $( '#page-tools .sidebar-inner' ).css( 'top', $( '#ca-more' ).offset().top + 25 );
if ( $( window ).width() < 851 ) { if ( $( window ).width() < 851 ) {
$( '#page-tools .sidebar-inner, #menus-cover' ).fadeToggle( toggleTime ); $( '#page-tools .sidebar-inner, #menus-cover' ).fadeToggle( toggleTime );
} }
} ); } );
$( '#ca-languages' ).on( 'click', function( e ) { $( '#ca-languages' ).on( 'click', function () {
$( '#other-languages .sidebar-inner' ).css( "top", $( '#ca-languages' ).offset().top + 25 ); $( '#other-languages .sidebar-inner' ).css( 'top', $( '#ca-languages' ).offset().top + 25 );
if ( $( window ).width() < 851 ) { if ( $( window ).width() < 851 ) {
$( '#other-languages .sidebar-inner, #menus-cover' ).fadeToggle( toggleTime ); $( '#other-languages .sidebar-inner, #menus-cover' ).fadeToggle( toggleTime );
} }
} ); } );
// Close menus on click outside // Close menus on click outside
$( document ).click( function( e ) { $( document ).click( function ( e ) {
if ( $( e.target ).closest( '#menus-cover' ).length > 0 ) { if ( $( e.target ).closest( '#menus-cover' ).length > 0 ) {
$( '#personal-inner' ).fadeOut( toggleTime ); $( '#personal-inner' ).fadeOut( toggleTime );
$( '.sidebar-inner' ).fadeOut( toggleTime ); $( '.sidebar-inner' ).fadeOut( toggleTime );
@ -42,7 +42,7 @@ $( function() {
} ); } );
// Include alternative closing method for ios // Include alternative closing method for ios
$( window ).on( 'swiperight', function( e ) { $( window ).on( 'swiperight', function () {
if ( $( window ).width() < 851 ) { if ( $( window ).width() < 851 ) {
$( '#personal-inner' ).fadeOut( toggleTime ); $( '#personal-inner' ).fadeOut( toggleTime );
$( '.sidebar-inner' ).fadeOut( toggleTime ); $( '.sidebar-inner' ).fadeOut( toggleTime );

Loading…
Cancel
Save