MediaWiki:Common.js: Difference between revisions
No edit summary |
No edit summary |
||
| Line 1,375: | Line 1,375: | ||
} | } | ||
var | var title = $('.mf-section-0 > p').filter(function () { | ||
return $(this).text().trim() === 'કાવ્ય, ભજન'; | return $(this).text().trim() === 'કાવ્ય, ભજન'; | ||
}).first(); | }).first(); | ||
| Line 1,381: | Line 1,381: | ||
var booksHeading = $('.wst-center.tiInherit').first(); | var booksHeading = $('.wst-center.tiInherit').first(); | ||
if ( | if (title.length && booksHeading.length) { | ||
booksHeading.after(title); | |||
booksHeading.after( | |||
} | } | ||
}); | }); | ||