8,290
edits
(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). | 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" }); |