X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=resources%2Fsrc%2Fmediawiki.inspect.js;h=72a27fa57fa352f2740e67af024c4bdd050cc5d7;hb=1d47891cc3d43bc6b47e30d0b605436c3dac1fc9;hp=f5c2c93e87917f1322f046258a3ad44618fccc14;hpb=4df0c71911500466a6330b8fe29c623ef5b51e41;p=lhc%2Fweb%2Fwiklou.git diff --git a/resources/src/mediawiki.inspect.js b/resources/src/mediawiki.inspect.js index f5c2c93e87..72a27fa57f 100644 --- a/resources/src/mediawiki.inspect.js +++ b/resources/src/mediawiki.inspect.js @@ -40,9 +40,13 @@ var i, units = [ '', ' KiB', ' MiB', ' GiB', ' TiB', ' PiB' ]; - if ( !$.isNumeric( bytes ) || bytes === 0 ) { return bytes; } + if ( !$.isNumeric( bytes ) || bytes === 0 ) { + return bytes; + } - for ( i = 0; bytes >= 1024; bytes /= 1024 ) { i++; } + for ( i = 0; bytes >= 1024; bytes /= 1024 ) { + i++; + } // Maintain one decimal for kB and above, but don't // add ".0" for bytes. return bytes.toFixed( i > 0 ? 1 : 0 ) + units[ i ]; @@ -153,7 +157,7 @@ style.textContent = css; document.body.appendChild( style ); - // eslint-disable-next-line no-restricted-properties + // eslint-disable-next-line jquery/no-each-util $.each( style.sheet.cssRules, function ( index, rule ) { selectors.total++; // document.querySelector() on prefixed pseudo-elements can throw exceptions