Ok, I have narrowed it down to the html and here’s what happens:
Using the popover without html works fine. The popover is created and all is peachy
[events_list_grouped mode="monthly" limit="8" pagination="1"]
<a href="#" class="calendar-popover" data-toggle="popover" title="" data-content="Button1 Button2">
[/events_list_grouped]
However: as soon as I introduce any html in data-content, things go south. Even using Button1 <br> Button2 will break the page.
I am using the Bootstrap library for the popover and I have tweaked the script so it *should* accept html. Maybe someone with better knowledge of EM and Java can help me out here?
<script>
$=jQuery;
$(document).ready(function(){
$('[data-toggle="popover"]').popover({html:true});
});
</script>
As always: thanks for any hints or just beat me up for doing stupid things I shouldn’t be doing 🙂
Again, for completeness, this is the script I am using in the header:
<script type='text/javascript' src='/wp-content/themes/Divi-child/js/tooltip.js?ver=3.4.1'></script>
<script type='text/javascript' src='/wp-content/themes/Divi-child/js/popover.js?ver=3.4.1'></script>
<script>
$=jQuery;
$(document).ready(function(){
$('[data-toggle="popover"]').popover({html:true});
});
</script>
I have made some major strides and I don’t want to withhold what I have fond in case someone has the same question. There is a solution to the problem and it is detailed in this JS Fiddle.
So, I have managed to get there without breaking the page but one little detail is still missing: Although the events get passed to the popover, the first event appears in *all* the popovers. Again, if someone knows why, please let me know. Thanks!
Site: http://bemoused.com/show-calendar-2/ (Use Password “Micerule”)