Don't do pushState() navigation on middle click

Change-Id: I549c5a49a3e68384162d919b412c809dcf0fa774
This commit is contained in:
Aaron Boodman 2014-01-07 22:40:14 -08:00
parent ea40141be3
commit 2bdcf0e2d4
1 changed files with 1 additions and 1 deletions

View File

@ -253,7 +253,7 @@ cam.IndexPage.prototype.enterDocument = function() {
// TODO(aa): We need to implement general purpose routing and get rid of all these one-off hacks.
this.eh_.listen(this.getElement(), 'click', function(e) {
if (e.target.className == 'cam-blobitem-thumb') {
if (e.button == 0 && e.target.className == 'cam-blobitem-thumb') {
var uri = new goog.Uri(this.dom_.getAncestorByTagNameAndClass(e.target, 'a').href);
if (uri.getParameterValue('newui') == '1') {
try {