MediaWiki:Common.js: Difference between revisions
No edit summary Tag: Manual revert |
No edit summary |
||
| Line 1,375: | Line 1,375: | ||
} | } | ||
var section = $('.mf-section-0'); | |||
if (!section.length) { | |||
return; | |||
} | |||
var authorBlock = section.children('p').filter(function () { | |||
return $(this).find('span[style*="float:right"]').length; | |||
}).first(); | |||
if (authorBlock.length) { | |||
authorBlock.addClass('author-moving'); | |||
} | |||
mw.hook('wikipage.content').add(function () { | |||
var poemBlock = section.children('.Poem2-Ekatra').first(); | var poemBlock = section.children('.Poem2-Ekatra').first(); | ||
| Line 1,395: | Line 1,397: | ||
poemBlock.after(authorBlock); | poemBlock.after(authorBlock); | ||
authorBlock.removeClass('author-moving'); | |||
} | } | ||
} | }); | ||
}); | }); | ||