Changes

Jump to: navigation, search

MediaWiki:Common.js

122 bytes added, 7 years ago
don't perform these actions until after the image has loaded
$image_wrapper.css('min-height', $image_wrapper.height());
var img = new Image(); img.onload = function() { // Change the main image's URL to the new image and set its width and height $main_image .attr('src', src) .attr('width', width) .attr('height', height);
// 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')) .attr('title', this.getAttribute('title')); } img.src = src;
});
/* End of mw.loader.using callback; DO NOT ADD CODE BELOW THIS LINE */
});

Navigation menu