Skip to content

Commit e073d59

Browse files
rossburtonstephenfin
authored andcommitted
templates/base: generalise clipbboardjs initialisation
Don't limit the clipboardjs hooking to button.btn-copy, as we may want to use it on icons which are not buttons. Signed-off-by: Ross Burton <[email protected]>
1 parent 28c6e7b commit e073d59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/base.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<script src="{% static "js/js.cookie.min.js" %}"></script>
2525
<script>
2626
$(document).ready(function() {
27-
new Clipboard(document.querySelectorAll('button.btn-copy'));
27+
new Clipboard(document.querySelectorAll('.btn-copy'));
2828
});
2929
</script>
3030
{% block headers %}{% endblock %}

0 commit comments

Comments
 (0)