From 2db44627354f55ebcb1a630f2fbc088c5dfd8c31 Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Sat, 19 Nov 2011 21:38:40 -0500 Subject: [PATCH] fix annoying behaviour in webkit browsers when middle-clicking (open in new tab) on a build, it used to open the build both in new tab as current tab --- src/root/common.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/root/common.tt b/src/root/common.tt index 41647be2..6b65ade7 100644 --- a/src/root/common.tt +++ b/src/root/common.tt @@ -97,7 +97,7 @@ [% ELSE -%] [% IF odd %] odd [% END; odd = !odd -%] [% END %]" - onclick="window.location = '[% c.uri_for('/build' build.id) %]'"> + onclick="if(event.which == 2) return true ; window.location = '[% c.uri_for('/build' build.id) %]'"> [% IF !hideResultInfo %] [% INCLUDE renderBuildStatusIcon size=16 %]