We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27bb276 commit 5f19b0fCopy full SHA for 5f19b0f
static/js/theme.js
@@ -368,11 +368,13 @@ function initCodeClipboard(){
368
369
clip.on( 'success', function( e ){
370
e.clearSelection();
371
+ var inPre = e.trigger.parentNode.tagName.toLowerCase() == 'pre';
372
e.trigger.setAttribute( 'aria-label', window.T_Copied_to_clipboard );
373
e.trigger.classList.add( 'tooltipped', 'tooltipped-' + (inPre ? 'w' : 's'+(isRtl?'e':'w')) );
374
});
375
376
clip.on( 'error', function( e ){
377
378
e.trigger.setAttribute( 'aria-label', fallbackMessage(e.action) );
379
380
var f = function(){
0 commit comments