diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2012-06-13 23:40:19 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2012-06-13 23:40:19 +0200 |
commit | 588cc40aeec0165400421ef9612e81b6d2c7b936 (patch) | |
tree | 85f1e86ba187fbc81ef42393433f1fa5aa6defb3 /extensions/Vector/modules/ext.vector.sectionEditLinks.js | |
parent | 67674d7a741c7c1de947f30ceb1ab3b35283308e (diff) |
Update to MediaWiki 1.19.1
Diffstat (limited to 'extensions/Vector/modules/ext.vector.sectionEditLinks.js')
-rw-r--r-- | extensions/Vector/modules/ext.vector.sectionEditLinks.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/extensions/Vector/modules/ext.vector.sectionEditLinks.js b/extensions/Vector/modules/ext.vector.sectionEditLinks.js index b8e2f601..2a3301bf 100644 --- a/extensions/Vector/modules/ext.vector.sectionEditLinks.js +++ b/extensions/Vector/modules/ext.vector.sectionEditLinks.js @@ -1,7 +1,7 @@ /* * Section Edit Links for Vector */ -( function( $, mw ) { +( function ( $, mw ) { var eventBase = 'ext.vector.sectionEditLinks-bucket:'; var cookieBase = 'ext.vector.sectionEditLinks-'; @@ -37,10 +37,10 @@ if ( bucket <= 0 ) { return; } -$(document).ready( function() { +$(document).ready( function () { // Transform the targets of section edit links to route through the click tracking API var session = $.cookie( 'clicktracking-session' ); - $( 'span.editsection a, #ca-edit a' ).each( function() { + $( 'span.editsection a, #ca-edit a' ).each( function () { var event = eventBase + bucket + '@' + experiment; if ( $(this).is( '#ca-edit a' ) ) { event += '-tab'; @@ -54,7 +54,7 @@ $(document).ready( function() { } ); if ( bucket == 2 ) { // Move the link over to be next to the heading text and style it with an icon - $( 'span.mw-headline' ).each( function() { + $( 'span.mw-headline' ).each( function () { $(this) .after( $( '<span class="editsection vector-editLink"></span>' ) @@ -62,7 +62,7 @@ $(document).ready( function() { $(this) .prev( 'span.editsection' ) .find( 'a' ) - .each( function() { + .each( function () { var text = $(this).text(); $(this).text( text.substr( 0, 1 ).toUpperCase() + text.substr( 1 ) |