MediaWiki:Common.js: Difference between revisions

No edit summary
No edit summary
Line 1,445: Line 1,445:
$(function () {
$(function () {


     $('.ekatra-author').each(function () {
     $('.ekatra-author').next('p').each(function () {


         $(this).nextAll('p').each(function () {
         if (
 
            $(this).children('br').length &&
             var html = $.trim($(this).html()).toLowerCase();
             $.trim($(this).text()) === ''
 
        ) {
            if (
            $(this).remove();
                html === '' ||
         }
                html === '<br>' ||
                html === '<br/>' ||
                html === '<br />'
            ) {
                $(this).remove();
            } else {
                return false;
            }
 
         });


     });
     });


});
});