Don't add pushState event on <a> with blank href

This commit is contained in:
Ruud
2011-10-22 21:16:10 +02:00
parent 492162b851
commit c40ade5214
+1 -1
View File
@@ -29,7 +29,7 @@ var CouchPotato = new Class({
else
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){