MediaWiki:Common.js: Difference between revisions

No edit summary
No edit summary
Line 1,392: Line 1,392:
     $('.ekatra-right-author').each(function () {
     $('.ekatra-right-author').each(function () {


         $(this).nextAll('p').each(function () {
         var poem = $(this).closest('.Poem2-Ekatra');
        var p = poem.next('p');


            if ($.trim($(this).text()) === '') {
        if (p.find('br').length) {
                $(this).remove();
            p.remove();
            } else {
         }
                return false;
            }
 
         });


     });
     });


});
});