Skip to content

Commit 4d781ec

Browse files
committed
Change how popups are attached.
More popups coming.
1 parent 82a8abd commit 4d781ec

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

_layouts/fomantic.liquid

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,9 @@
117117
<script src="https://cdn.jsdelivr.net/npm/jquery@3.7.1/dist/jquery.min.js"></script>
118118
<script src="https://cdn.jsdelivr.net/npm/fomantic-ui@2.9.4/dist/semantic.min.js"></script>
119119
<script>
120-
$('#keyboard-shortcuts').popup({ on: 'click', inline: true });
120+
$('.ui.popup').each((i, el) => {
121+
$(el).prev().popup({ on: 'click', inline: true, preserve: true });
122+
});
121123
</script>
122124
</body>
123125
</html>

0 commit comments

Comments
 (0)