MediaWiki:Common.js: Difference between revisions
No edit summary Tag: Manual revert |
No edit summary |
||
| Line 1,437: | Line 1,437: | ||
$(window).on('resize', stickyToolbar); | $(window).on('resize', stickyToolbar); | ||
}); | |||
/*----------------------------------08-07-2026----------------------------------*/ | |||
/* Remove blank <p><br></p> after Author template */ | |||
$(function () { | |||
$('.ekatra-author').each(function () { | |||
$(this).nextAll('p').each(function () { | |||
var html = $.trim($(this).html()).toLowerCase(); | |||
if ( | |||
html === '' || | |||
html === '<br>' || | |||
html === '<br/>' || | |||
html === '<br />' | |||
) { | |||
$(this).remove(); | |||
} else { | |||
return false; | |||
} | |||
}); | |||
}); | |||
}); | }); | ||