Created
September 26, 2013 15:34
-
-
Save sergiitk/6715905 to your computer and use it in GitHub Desktop.
GistBox copy code on double click: copy link address over following it
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Do not follow links in gist content, just copy its href to the clipboard. | |
$(document).on('click', '.gist-file-code a', function() { | |
var link = $(this).attr('href'); | |
gitbox_extra_save_to_clipboard(link, 'Copied.<br /><small>' + link + '</small>'); | |
return false; | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment