# HG changeset patch # User Nathan Phillip Brink # Date 2011-10-20 09:05:56 # Node ID 2fed344e05dc4b1136ec366836a02efc77a3f965 # Parent 68253df307c75b4b44aa50cac37d29e623c125c5 Don't hide permalink when the user tries to click on it/select it. Fixes bug #120. diff --git a/scripts/displayTables.js b/scripts/displayTables.js --- a/scripts/displayTables.js +++ b/scripts/displayTables.js @@ -151,6 +151,13 @@ jQuery(document).ready( function() jQuery(".clicktoclipboard").click( function() { jQuery('.toclipboard', this).toggle(); }); + /* + * Don't let the event bubble up if the user is clicking trying + * to select the permalink. + */ + jQuery('.toclipboard').click(function(e) { + e.stopPropagation(); + }); } );