Skip to content

Commit ec84e82

Browse files
committed
Change how popups are attached.
More popups coming.
1 parent 22345e3 commit ec84e82

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
@@ -128,7 +128,9 @@
128128
<script src="https://cdn.jsdelivr.net/npm/jquery@3.7.1/dist/jquery.min.js"></script>
129129
<script src="https://cdn.jsdelivr.net/npm/fomantic-ui@2.9.4/dist/semantic.min.js"></script>
130130
<script>
131-
$('#keyboard-shortcuts').popup({ on: 'click', inline: true });
131+
$('.ui.popup').each((i, el) => {
132+
$(el).prev().popup({ on: 'click', inline: true, preserve: true });
133+
});
132134
</script>
133135
</body>
134136
</html>

0 commit comments

Comments
 (0)