From 45b649f99d8950d3c558664b60914f4d31dd79dc Mon Sep 17 00:00:00 2001
From: XhmikosR <xhmikosr@gmail.com>
Date: Sat, 30 Dec 2017 15:52:53 +0200
Subject: [PATCH] application.js: make the clipboard button selector more
 restrictive.

---
 assets/js/src/application.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/assets/js/src/application.js b/assets/js/src/application.js
index 9c236b7c4b..eb52848756 100644
--- a/assets/js/src/application.js
+++ b/assets/js/src/application.js
@@ -54,7 +54,7 @@
     })
 
     // Insert copy to clipboard button before .highlight
-    $('.highlight').each(function () {
+    $('figure.highlight, div.highlight').each(function () {
       var btnHtml = '<div class="bd-clipboard"><button class="btn-clipboard" title="Copy to clipboard">Copy</button></div>'
       $(this).before(btnHtml)
       $('.btn-clipboard')
-- 
GitLab