summaryrefslogtreecommitdiff
path: root/extensions/Vector/modules
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/Vector/modules')
-rw-r--r--extensions/Vector/modules/ext.vector.collapsibleNav.js6
-rw-r--r--extensions/Vector/modules/ext.vector.footerCleanup.js7
-rw-r--r--extensions/Vector/modules/ext.vector.sectionEditLinks.js11
-rw-r--r--extensions/Vector/modules/images/closed-ltr.pngbin184 -> 143 bytes
-rw-r--r--extensions/Vector/modules/images/closed-rtl.pngbin942 -> 145 bytes
-rw-r--r--extensions/Vector/modules/images/edit-faded.pngbin546 -> 425 bytes
-rw-r--r--extensions/Vector/modules/images/edit.pngbin551 -> 428 bytes
-rw-r--r--extensions/Vector/modules/images/open.pngbin181 -> 145 bytes
-rw-r--r--extensions/Vector/modules/images/portal-break.pngbin242 -> 203 bytes
9 files changed, 16 insertions, 8 deletions
diff --git a/extensions/Vector/modules/ext.vector.collapsibleNav.js b/extensions/Vector/modules/ext.vector.collapsibleNav.js
index 6e72ef84..5da57aca 100644
--- a/extensions/Vector/modules/ext.vector.collapsibleNav.js
+++ b/extensions/Vector/modules/ext.vector.collapsibleNav.js
@@ -172,10 +172,14 @@ jQuery( function( $ ) {
) {
$(this)
.addClass( 'expanded' )
+ .removeClass( 'collapsed' )
.find( 'div.body' )
+ .hide() // bug 34450
.show();
} else {
- $(this).addClass( 'collapsed' );
+ $(this)
+ .addClass( 'collapsed' )
+ .removeClass( 'expanded' );
}
// Re-save cookie
if ( state != null ) {
diff --git a/extensions/Vector/modules/ext.vector.footerCleanup.js b/extensions/Vector/modules/ext.vector.footerCleanup.js
index 2df26540..66838375 100644
--- a/extensions/Vector/modules/ext.vector.footerCleanup.js
+++ b/extensions/Vector/modules/ext.vector.footerCleanup.js
@@ -43,10 +43,9 @@ jQuery( document ).ready( function( $ ) {
$( '.templatesUsed ul' )
.wrap( '<div id="transclusions-list" class="collapsible-list collapsed"></div>' )
.parent()
- // FIXME: i18n, remove link from message and let community add link to transclusion page if it exists
- .prepend( '<label>This page contains <a href="http://en.wikipedia.org/wiki/transclusion">transclusions</a> of <strong>'
- + transclusionCount
- + '</strong> other pages.</label>' );
+ .prepend( $( '<label>' )
+ .text( mw.msg( 'vector-footercleanup-transclusion', transclusionCount ) )
+ );
$( '.mw-templatesUsedExplanation' ).remove();
$( '.collapsible-list label' )
diff --git a/extensions/Vector/modules/ext.vector.sectionEditLinks.js b/extensions/Vector/modules/ext.vector.sectionEditLinks.js
index 94a154e9..b8e2f601 100644
--- a/extensions/Vector/modules/ext.vector.sectionEditLinks.js
+++ b/extensions/Vector/modules/ext.vector.sectionEditLinks.js
@@ -5,13 +5,13 @@
var eventBase = 'ext.vector.sectionEditLinks-bucket:';
var cookieBase = 'ext.vector.sectionEditLinks-';
+var bucket = null;
if ( mw.config.get( 'wgVectorSectionEditLinksBucketTest', false ) ) {
// If the version in the client's cookie doesn't match wgVectorSectionEditLinksExperiment, then
// we need to disregard the bucket they may already be in to ensure accurate redistribution
var currentExperiment = $.cookie( cookieBase + 'experiment' );
var experiment = Number( mw.config.get( 'wgVectorSectionEditLinksExperiment', 0 ) );
- var bucket = null;
if ( currentExperiment === null || Number( currentExperiment ) != experiment ) {
$.cookie( cookieBase + 'experiment', experiment );
} else {
@@ -32,7 +32,12 @@ if ( mw.config.get( 'wgVectorSectionEditLinksBucketTest', false ) ) {
}
}
}
-if ( bucket > 0 ) {
+
+if ( bucket <= 0 ) {
+ return;
+}
+
+$(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() {
@@ -70,6 +75,6 @@ if ( bucket > 0 ) {
.remove();
} );
}
-}
+} );
} )( jQuery, mediaWiki );
diff --git a/extensions/Vector/modules/images/closed-ltr.png b/extensions/Vector/modules/images/closed-ltr.png
index c27c9636..063ac6f7 100644
--- a/extensions/Vector/modules/images/closed-ltr.png
+++ b/extensions/Vector/modules/images/closed-ltr.png
Binary files differ
diff --git a/extensions/Vector/modules/images/closed-rtl.png b/extensions/Vector/modules/images/closed-rtl.png
index be968a4a..c3462182 100644
--- a/extensions/Vector/modules/images/closed-rtl.png
+++ b/extensions/Vector/modules/images/closed-rtl.png
Binary files differ
diff --git a/extensions/Vector/modules/images/edit-faded.png b/extensions/Vector/modules/images/edit-faded.png
index 0f622e12..1e2e5d83 100644
--- a/extensions/Vector/modules/images/edit-faded.png
+++ b/extensions/Vector/modules/images/edit-faded.png
Binary files differ
diff --git a/extensions/Vector/modules/images/edit.png b/extensions/Vector/modules/images/edit.png
index ec02a986..fe281252 100644
--- a/extensions/Vector/modules/images/edit.png
+++ b/extensions/Vector/modules/images/edit.png
Binary files differ
diff --git a/extensions/Vector/modules/images/open.png b/extensions/Vector/modules/images/open.png
index bf2d4fb4..0221028e 100644
--- a/extensions/Vector/modules/images/open.png
+++ b/extensions/Vector/modules/images/open.png
Binary files differ
diff --git a/extensions/Vector/modules/images/portal-break.png b/extensions/Vector/modules/images/portal-break.png
index e81b5597..10cd7f83 100644
--- a/extensions/Vector/modules/images/portal-break.png
+++ b/extensions/Vector/modules/images/portal-break.png
Binary files differ