MediaWiki:Common.js: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 18: Line 18:
/* Fix for <imagemap>s to prevent them from resizing  */
/* Fix for <imagemap>s to prevent them from resizing  */
$( document ).ready(function() {
$( document ).ready(function() {
     $('\[usemap\]').each(function() {
     $('[usemap]').each(function() {
         $(this).css('min-width', $(this).attr('width'));
         $(this).css('min-width', $(this).attr('width'));
     });
     });
});
});