MediaWiki:Common.js: Difference between revisions

No edit summary
No edit summary
Line 1,375: Line 1,375:
     }
     }


     var firstTitle = $('.mf-section-0 > p').filter(function () {
     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 (firstTitle.length && booksHeading.length) {
     if (title.length && booksHeading.length) {
 
         booksHeading.after(title);
         booksHeading.after(firstTitle);
 
        firstTitle.css('display', 'block');
     }
     }


});
});