malsup / cycle2

2nd gen cycling
899 stars 238 forks source link

slideCount value incorrect in pagerTemplate #752

Open cahayward opened 8 years ago

cahayward commented 8 years ago

When using {{slideNum}} of {{slideCount}} in pagerTemplate Javascript, or in data-cycle-pager-template HTML, the value of slideCount is not the total, but a running total. e.g. it will display '1 of 1', '2 of 2', '3 of 3' etc. Reason for trying to show {{slideNum}} of {{slideCount}} in the pager is to provide accessibility information on each pager link.