MediaWiki:Common.js: Difference between revisions

Jump to navigation Jump to search
16 bytes added ,  03:15, 14 November 2020
m
selector fix, part 2
(improve qud image carousel to work for multiple infoboxes on the same page)
m (selector fix, part 2)
 
(One intermediate revision by the same user not shown)
Line 120: Line 120:
     curItem.show();
     curItem.show();
     /* expand infobox title to also show image label */
     /* expand infobox title to also show image label */
     carouselTitle = $(parentElem).siblings('.infobox-title').find('.qud-carousel-title').first();
     carouselTitle = $(parentElem).closest('.moduleinfobox').find('.infobox-title > .qud-carousel-title').first();
     carouselTitle.text(curItem.data("label"));
     carouselTitle.text(curItem.data("label"));
     carouselTitle.animate({ height: "25px" });
     carouselTitle.animate({ height: "25px" });

Navigation menu