From: Krinkle Date: Tue, 1 Feb 2011 02:28:10 +0000 (+0000) Subject: Applying conventions and some JSLint good practices in core modules. X-Git-Tag: 1.31.0-rc.0~32274 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22suivi_revisions%22%29%20.%20%22?a=commitdiff_plain;h=006b6ee25fd68734d606bddd91ae4e606e1de765;p=lhc%2Fweb%2Fwiklou.git Applying conventions and some JSLint good practices in core modules. --- diff --git a/resources/jquery/jquery.tabIndex.js b/resources/jquery/jquery.tabIndex.js index 784f8c9938..9d4da4d9a0 100644 --- a/resources/jquery/jquery.tabIndex.js +++ b/resources/jquery/jquery.tabIndex.js @@ -10,7 +10,7 @@ $.fn.firstTabIndex = function() { var minTabIndex = 0; $(this).find( '[tabindex]' ).each( function() { - var tabIndex = parseInt( $(this).attr( 'tabindex' ) ); + var tabIndex = parseInt( $(this).attr( 'tabindex' ), 10 ); if ( tabIndex > minTabIndex ) { minTabIndex = tabIndex; } @@ -26,7 +26,7 @@ $.fn.firstTabIndex = function() { $.fn.lastTabIndex = function() { var maxTabIndex = 0; $(this).find( '[tabindex]' ).each( function() { - var tabIndex = parseInt( $(this).attr( 'tabindex' ) ); + var tabIndex = parseInt( $(this).attr( 'tabindex' ), 10 ); if ( tabIndex > maxTabIndex ) { maxTabIndex = tabIndex; }