mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 15:05:46 +01:00
fixed no href-attribute handled as external link
This commit is contained in:
@@ -253,7 +253,7 @@ var ajaxify = ajaxify || {};
|
|||||||
}
|
}
|
||||||
|
|
||||||
function hrefEmpty(href) {
|
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...
|
// Enhancing all anchors to ajaxify...
|
||||||
|
|||||||
Reference in New Issue
Block a user