From c40ade5214a3685698fde286c807e4c1df0f6068 Mon Sep 17 00:00:00 2001 From: Ruud Date: Sat, 22 Oct 2011 21:16:10 +0200 Subject: [PATCH] Don't add pushState event on with blank href --- couchpotato/static/scripts/couchpotato.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/couchpotato/static/scripts/couchpotato.js b/couchpotato/static/scripts/couchpotato.js index e1649ef1..5afd3106 100644 --- a/couchpotato/static/scripts/couchpotato.js +++ b/couchpotato/static/scripts/couchpotato.js @@ -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){