Skip to main content
5 events
when toggle format what by license comment
May 17, 2019 at 7:25 comment added colonel_claypoo Thanks, I updated my initial post with the full display template code. I also tried to play around adhering to the way it's implemented with the hoverPanel but the issue is the same. It opens all items as soon as the page is rendering.
May 16, 2019 at 15:23 comment added BigRaj After taking a look at the Item_Default.html file, it looks like the JS code is attaching the function to a property on the ctx.currentItem, and then pulling it into the html that way. there's a line ctx.currentItem_ShowHOverPanelCallback = Srch.U.getShowHoverPanelCallback(itemId, hoverId, hoverUrl) and it is pulled into the html as onmouseover="_#= ctx.currentItem_ShowHoverPanelCallback =#_"
May 16, 2019 at 15:10 comment added BigRaj Yes please, the full display template would help see what's going on that could be triggering it. I'm looking over my display templates right now to see how I handled an onclick event.
May 16, 2019 at 13:50 comment added colonel_claypoo Thanks. So what's happening now is that the modals are not opened twice (60x) but tey're still opening as soon as the page is loading without any click interaction. So it's basically like calling the function for each item and the .onclick() is still ignored. Do you need the full display template code?
May 16, 2019 at 13:11 history answered BigRaj CC BY-SA 4.0