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

This commit is contained in:
Rob Vermaas 2011-11-19 21:38:40 -05:00
parent 43198e9353
commit 2db4462735

View file

@ -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 %]
<td>
[% INCLUDE renderBuildStatusIcon size=16 %]