Don't add pushState event on <a> with blank href
This commit is contained in:
1 parent
492162b851
commit
c40ade5214
1 file changed
+1
-1
@@ -29,7 +29,7 @@ var CouchPotato = new Class({
|
|||||||
else
|
else
|
||||||
self.openPage(window.location.pathname);
|
self.openPage(window.location.pathname);
|
||||||
|
|
||||||
self.c.addEvent('click:relay(a:not([target=_blank]):not([normalhref=true]))', self.pushState.bind(self));
|
self.c.addEvent('click:relay(a[href]:not([target=_blank]):not([normalhref=true]))', self.pushState.bind(self));
|
||||||
},
|
},
|
||||||
|
|
||||||
getOption: function(name){
|
getOption: function(name){
|
||||||
|
|||||||
Reference in new issue
Block a user