From fef60569f489d385d54d758209ae675097416fe2 Mon Sep 17 00:00:00 2001 From: Aaron Boodman Date: Tue, 1 Jul 2014 14:27:59 -0700 Subject: [PATCH] Always handle clicks on aspect links in JavaScript. It would be better to support real URLs for these, but I need to figure out how routing those should work first. So for now this is maybe less annoying. Change-Id: I1992d23cb0f94b509f73db23a542b56ca5df7531 --- server/camlistored/ui/detail.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/server/camlistored/ui/detail.js b/server/camlistored/ui/detail.js index 6304aac5c..f8e035fcf 100644 --- a/server/camlistored/ui/detail.js +++ b/server/camlistored/ui/detail.js @@ -119,10 +119,14 @@ cam.DetailView = React.createClass({ this.eh_.dispose(); }, - handleAspectClick_: function(name) { - this.setState({ - selectedAspect: name, - }); + handleAspectClick_: function(name, e) { + // Mathieu requests that middle and right-click do nothing until we can make real URLs work. + if (e.button == 0) { + this.setState({ + selectedAspect: name, + }); + } + return false; }, handleKeyUp_: function(e) {