MediaWiki:Common.js: Difference between revisions

No edit summary
No edit summary
Line 1,385: Line 1,385:
     }).first();
     }).first();


     if (authorBlock.length) {
    var poemBlock = section.children('.Poem2-Ekatra').first();
         authorBlock.addClass('author-moving');
 
     if (authorBlock.length && poemBlock.length) {
        poemBlock.after(authorBlock);
         authorBlock.addClass('author-fixed');
     }
     }
    mw.hook('wikipage.content').add(function () {
        var poemBlock = section.children('.Poem2-Ekatra').first();
        if (authorBlock.length && poemBlock.length) {
            poemBlock.after(authorBlock);
            authorBlock.removeClass('author-moving');
        }
    });


});
});