Merge pull request #1775 from frissdiegurke/patch-1

fixed no href-attribute handled as external link
This commit is contained in:
Barış Soner Uşaklı
2014-07-01 16:52:31 -04:00

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...