MediaWiki:Common.js: Difference between revisions

no edit summary
(Fix for <imagemap>s to prevent them from resizing)
No edit summary
Line 17: Line 17:


/* Fix for <imagemap>s to prevent them from resizing  */
/* Fix for <imagemap>s to prevent them from resizing  */
$('[usemap]').each(function() {
$( document ).ready(function() {
    $(this).css('min-width', $(this).attr('width'));
    $('\[usemap\]').each(function() {
        $(this).css('min-width', $(this).attr('width'));
    });
});
});
Approver, Batcheditor, Moderator, Patroller, Protector, Reviewer, Bots, Bureaucrats, editor, Interface administrators, pagecreator, pagedeleter, Page Ownership admin, Push subscription managers, Suppressors, Administrators, Upload Wizard campaign editors, Widget editors
321,763

edits