From e9c6bc79988761337666939a20c0cc0ae41e0b7a Mon Sep 17 00:00:00 2001 From: RealStickman Date: Fri, 27 May 2022 14:10:34 +0200 Subject: [PATCH] (Grav GitSync) Automatic Commit from RealStickman --- themes/learn2/js/.learn.js.swp | Bin 28672 -> 28672 bytes themes/learn2/js/learn.js | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/learn2/js/.learn.js.swp b/themes/learn2/js/.learn.js.swp index e711f6fb47036060d160bb623c205d283fa68ac7..5aaa34506c60fcbf7080a004995e66aa9c57f1b5 100644 GIT binary patch delta 86 zcmZp8z}WDBQ6b47%+puFLeGc+2m}}y7VMvp#3U@j5HpvVp(sDUWa2`VjV=fLSwFBc pFnpNI8St7lh8@V-{4?M?>*R_4;*&YUCopPEP7D>_ygoco0sw-29EJb@ delta 87 zcmZp8z}WDBQ6b47%+puFLeGc+2m}}ydiPIA`XeO55HpvVp(sDUWa2`VjV=fLSwFEd qFnpTK8St7ljvdI_{4?M?E0ccu`li9;3Oy1}xwt0PcpacNaPaY`% diff --git a/themes/learn2/js/learn.js b/themes/learn2/js/learn.js index ef0780a..8c92fe0 100644 --- a/themes/learn2/js/learn.js +++ b/themes/learn2/js/learn.js @@ -178,7 +178,7 @@ jQuery(document).ready(function() { if (!clipInit) { var text, clip = new Clipboard('.copy-to-clipboard', { text: function(trigger) { - text = $(trigger).prev('code').text; + text = $(trigger).prev('code').text(); // NOTE custom stuff to strip # or $ from the beginning of my inline command blocks return text.replace(/^[\$\s\#\$]{1,4}/gm, ''); // original code