comparison core/modules/tour/js/tour.js @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents 1fec387a4317
children
comparison
equal deleted inserted replaced
16:c2387f117808 17:129ea1e6d783
120 if (!total) { 120 if (!total) {
121 this.model.set({ tour: [] }); 121 this.model.set({ tour: [] });
122 } 122 }
123 123
124 $tour.find('li').each(function (index) { 124 $tour.find('li').each(function (index) {
125 var progress = Drupal.t('!tour_item of !total', { '!tour_item': index + 1, '!total': total }); 125 var progress = Drupal.t('!tour_item of !total', {
126 '!tour_item': index + 1,
127 '!total': total
128 });
126 $(this).find('.tour-progress').text(progress); 129 $(this).find('.tour-progress').text(progress);
127 }).eq(-1).attr('data-text', Drupal.t('End tour')); 130 }).eq(-1).attr('data-text', Drupal.t('End tour'));
128 } 131 }
129 } 132 }
130 }); 133 });