# HG changeset patch # User dellsystem # Date 1350095675 14400 # Node ID c3c4aaccbcd05a59c85e7dcac7b5f93da70e3c1c # Parent 2a2078bd334c862c344154ad1a33068fe94b37bb Return false when clicking "Highlight code" link Prevents the browser from treating it as an actual hyperlink diff --git a/static/js/agora.js b/static/js/agora.js --- a/static/js/agora.js +++ b/static/js/agora.js @@ -62,6 +62,8 @@ // Highlight the code when the link is clicked $('.highlight-code-lines').click(function () { $('.code-lines').selectText(); + + return false; }); }); })(jQuery);