fixed no href-attribute handled as external link

This commit is contained in:
frissdiegurke
2014-07-01 22:45:00 +02:00
parent e6c9647acf
commit 2d9bc7eee7

View File

@@ -253,7 +253,7 @@ var ajaxify = ajaxify || {};
}
function hrefEmpty(href) {
return href === 'javascript:;' || href === window.location.href + "#" || href.slice(-1) === "#";
return href === '' || href === 'javascript:;' || href === window.location.href + "#" || href.slice(-1) === "#";
}
// Enhancing all anchors to ajaxify...