MediaWiki:Common.js: Difference between revisions
No edit summary Tag: Reverted |
No edit summary Tag: Reverted |
||
| Line 1,390: | Line 1,390: | ||
$(function () { | $(function () { | ||
// Remove | // Remove all blank paragraphs after author name | ||
$('.ekatra-right-author').each(function () { | $('.ekatra-right-author').each(function () { | ||
$(this).nextAll('p').each(function () { | |||
} | var p = $(this); | ||
if ($.trim(p.text()) === '') { | |||
p.remove(); | |||
} else { | |||
return false; | |||
} | |||
}); | |||
}); | }); | ||
// Remove | // Remove all blank paragraphs before HeaderNav2 | ||
$('.header-mainblock').each(function () { | $('.header-mainblock').each(function () { | ||
$(this).prevAll('p').each(function () { | |||
} | var p = $(this); | ||
if ($.trim(p.text()) === '') { | |||
p.remove(); | |||
} else { | |||
return false; | |||
} | |||
}); | |||
}); | }); | ||
}); | }); | ||