Repository navigation
v2.2.9.9
Preserve carousel element order from server
Changes
- VFBTermInfo.js: Rewrite orderCarouselElements() to preserve position order within templates
- Removed carouselImageIdOf() (unused after sort rewrite)
- Updated comment explaining within-template order is preserved from server
Impact
Works with VFBquery v1.22.54 to show template's indexed (painted-domain) images first in carousel. Fixes VFB2#500
Details
The sort algorithm now:
- Orders by template rank (main carousel templates → unindexed images)
- Within same template, preserves server order (no ID-based re-sort)
- Unindexed templates sort by ID descending (backward compat)
Depends on: VFBquery ≥ v1.22.54