MediaWiki:Common.js: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 34: Line 34:
var doubleBracket = '{' + '{';
var doubleBracket = '{' + '{';
uploadDescription.value = doubleBracket + 'aboutfile\n|description=\n|purpose=\n|game=\n|source=\n}}';
uploadDescription.value = doubleBracket + 'aboutfile\n|description=\n|purpose=\n|game=\n|source=\n}}';
}
});
/* Fix tabbers which incorrectly have their width set to their tabbertabs */
$('.tabber').each(function(i, obj) {
if (!$(this).prop('style').width) {
var tabbertabWidth = $(this).find('.tabbertab').prop('style').width;
if (tabbertabWidth)
$(this).css('width', tabbertabWidth);
}
}
});
});