From f67ac23c461f0c79dd962608362df4aadab5fe13 Mon Sep 17 00:00:00 2001 From: Peter Stadler Date: Fri, 8 Apr 2022 11:50:38 +0200 Subject: [PATCH] fix order of carousel-indicators --- resources/js/init.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/js/init.js b/resources/js/init.js index 3f01cdace..4eea8e1cf 100644 --- a/resources/js/init.js +++ b/resources/js/init.js @@ -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; @@ -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'));