MediaWiki:Common.js: Difference between revisions

Jump to navigation Jump to search
m
selector fix
(improve qud image carousel to work for multiple infoboxes on the same page)
m (selector fix)
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 .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