changeset 142:c3c4aaccbcd0

Return false when clicking "Highlight code" link Prevents the browser from treating it as an actual hyperlink
author dellsystem <ilostwaldo@gmail.com>
date Fri, 12 Oct 2012 22:34:35 -0400
parents 2a2078bd334c
children 7a27b1c9cb84
files static/js/agora.js
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/static/js/agora.js	Fri Oct 12 22:13:04 2012 -0400
+++ b/static/js/agora.js	Fri Oct 12 22:34:35 2012 -0400
@@ -62,6 +62,8 @@
         // Highlight the code when the link is clicked
         $('.highlight-code-lines').click(function () {
             $('.code-lines').selectText();
+
+            return false;
         });
     });
 })(jQuery);