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'));
    });
});
});