Skip to content

Commit

Permalink
fix order of carousel-indicators
Browse files Browse the repository at this point in the history
  • Loading branch information
peterstadler committed Apr 8, 2022
1 parent d0bdbf9 commit f67ac23
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion resources/js/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ function popover_callBack() {
popoverID = $(this).attr('aria-describedby'),
popover = $('#'+popoverID),
suppressCrosslink = $(this).hasClass("arabic"),
li_templ = $('.carousel-indicators li:last', popover),
li_templ,
li_clone,
popover_div,
popover_data;
Expand All @@ -544,6 +544,7 @@ function popover_callBack() {
$(urls).each(function(i,e) {
popover_div = $('div.item:last', popover);
popover_div.attr('data-ref', e);
li_templ = $('.carousel-indicators li:last', popover);

if(e.startsWith('#')) { // local references to endnotes and commentaries
$('.item-title-content', popover_div).html($(e).attr('data-title'));
Expand Down

0 comments on commit f67ac23

Please sign in to comment.