mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-16 18:56:15 +01:00
closes #4826
This commit is contained in:
@@ -304,6 +304,8 @@ $(document).ready(function() {
|
|||||||
return href === undefined || href === '' || href === 'javascript:;';
|
return href === undefined || href === '' || href === 'javascript:;';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var contentEl = document.getElementById('content');
|
||||||
|
|
||||||
// Enhancing all anchors to ajaxify...
|
// Enhancing all anchors to ajaxify...
|
||||||
$(document.body).on('click', 'a', function (e) {
|
$(document.body).on('click', 'a', function (e) {
|
||||||
var _self = this;
|
var _self = this;
|
||||||
@@ -321,7 +323,7 @@ $(document).ready(function() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (window.location.pathname !== '/outgoing') {
|
} else if (window.location.pathname !== '/outgoing') {
|
||||||
if (config.openOutgoingLinksInNewTab) {
|
if (config.openOutgoingLinksInNewTab && $.contains(contentEl, this)) {
|
||||||
window.open(this.href, '_blank');
|
window.open(this.href, '_blank');
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
} else if (config.useOutgoingLinksPage) {
|
} else if (config.useOutgoingLinksPage) {
|
||||||
|
|||||||
Reference in New Issue
Block a user