mirror of https://github.com/perkeep/perkeep.git
Don't do pushState() navigation on middle click
Change-Id: I549c5a49a3e68384162d919b412c809dcf0fa774
This commit is contained in:
parent
ea40141be3
commit
2bdcf0e2d4
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue