Changes

Jump to: navigation, search

MediaWiki:Common.js

21 bytes added, 7 years ago
The context of "this" is changed within this function.
var $image_wrapper = $imagecolumn.find('.cardtable-main_image-wrapper')
var $main_image = $image_wrapper.find('img:first');
var image_name = this.getAttribute('title');
// Images are not to go wider than the first one.
// Change the main image's link and hover text to match the new image
$main_image.parents('a')
.attr('href', '/wiki/File:'+this.getAttribute('title')image_name) .attr('title', this.getAttribute('title')image_name);
}
img.src = src;

Navigation menu