File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ function usesClipboardJs() {
1616
1717function setTooltip ( btn , message ) {
1818 $ ( btn ) . attr ( 'data-original-title' , message )
19- . tooltip ( 'show' ) ;
19+ . tooltip ( 'show' ) ;
2020} ;
2121
2222function hideTooltip ( btn ) {
@@ -31,10 +31,10 @@ function addCopyButton(element, index) {
3131
3232 if ( usesClipboardJs ( ) ) {
3333 var copyButtonSelector = '.copy-code-btn' ;
34- var id = ` ${ copyButtonSelector . slice ( 1 ) } - ${ index } ` ;
34+ var id = copyButtonSelector . slice ( 1 ) + "-" + index ;
3535 var copyButton = isCopyButtonOutsideCode ? $ ( element ) . prev ( copyButtonSelector ) : $ ( element ) . children ( copyButtonSelector ) ;
3636 $ ( copyButton ) . attr ( 'id' , id )
37- clipboard = new ClipboardJS ( `# ${ id } ` , {
37+ clipboard = new ClipboardJS ( "#" + id , {
3838 text : function ( ) {
3939 return $ ( element ) . text ( ) ;
4040 }
You can’t perform that action at this time.
0 commit comments