Skip to content

Commit 8c629fc

Browse files
committed
Change how popups are attached.
More popups coming.
1 parent 53ba798 commit 8c629fc

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
@@ -109,7 +109,9 @@
109109
<script src="https://cdn.jsdelivr.net/npm/jquery@3.7.1/dist/jquery.min.js"></script>
110110
<script src="https://cdn.jsdelivr.net/npm/fomantic-ui@2.9.4/dist/semantic.min.js"></script>
111111
<script>
112-
$('#keyboard-shortcuts').popup({ on: 'click', inline: true });
112+
$('.ui.popup').each((i, el) => {
113+
$(el).prev().popup({ on: 'click', inline: true, preserve: true });
114+
});
113115
</script>
114116
</body>
115117
</html>

0 commit comments

Comments
 (0)