mirror of https://github.com/perkeep/perkeep.git
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:
parent
adf538ba7c
commit
fef60569f4
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue