Merge "Always handle clicks on aspect links in JavaScript."

This commit is contained in:
Aaron Boodman 2014-07-01 22:10:59 +00:00 committed by Gerrit Code Review
commit f61d429d32
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) {
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) {