MediaWiki:Common.js: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 4: Line 4:
$(function() {
$(function() {
$('.gallerybox > div > .thumb > div:first-child').each(function(i, obj) {
$('.gallerybox > div > .thumb > div:first-child').each(function(i, obj) {
$(this).css('margin', '15px auto');
if ($(this).css('margin-top') == '-25px')
$(this).css('margin', '15px auto');
});
});
});
});