Widget:MoveListTrimmer: Difference between revisions
From Elwiki
mNo edit summary |
mNo edit summary |
||
Line 2: | Line 2: | ||
$(function(){ | $(function(){ | ||
$('#content h2').nextUntil('h2', 'table, ul').each(function(){ | $('#content h2').nextUntil('h2', 'table, ul').each(function(){ | ||
$( | $(this).prev('h2').addClass('persist'); | ||
}); | }); | ||
$('#content h2').not('.persist').remove(); | $('#content h2').not('.persist').remove(); | ||
});</script></includeonly> | });</script></includeonly> |