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
This commit is contained in:
Aaron Boodman 2014-07-01 14:27:59 -07:00
parent adf538ba7c
commit fef60569f4
1 changed files with 8 additions and 4 deletions

View File

@ -119,10 +119,14 @@ cam.DetailView = React.createClass({
this.eh_.dispose();
},
handleAspectClick_: function(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) {