summaryrefslogtreecommitdiff
path: root/extensions/Vector/modules/ext.vector.sectionEditLinks.js
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/Vector/modules/ext.vector.sectionEditLinks.js')
-rw-r--r--extensions/Vector/modules/ext.vector.sectionEditLinks.js10
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 )