Open the current href instead of the href the markup had when the page was
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Mon, 2 May 2011 18:47:19 +0000 (20:47 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Mon, 2 May 2011 18:47:19 +0000 (20:47 +0200)
loaded (Closes #1482)

Javascript is so much fun... and so much pain at once. Functional
programming is of these things that let you believe you are smarter than
you really are because solving such a simple bug requires so much
understanding of what really happen.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
htdocs/javascript/xorg.js

index 031e77b..47bf78b 100644 (file)
@@ -179,7 +179,7 @@ function auto_links() {
         }
         if ((!href.contains(fqdn) && !this.className.contains('popup')) || node.hasClass('popup')) {
             node.click(function () {
-                window.open(href);
+                window.open(this.href);
                 return false;
             });
         }