mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-17 19:21:04 +01:00
fixed #3272
This commit is contained in:
@@ -263,7 +263,7 @@ $(document).ready(function() {
|
|||||||
|
|
||||||
// Enhancing all anchors to ajaxify...
|
// Enhancing all anchors to ajaxify...
|
||||||
$(document.body).on('click', 'a', function (e) {
|
$(document.body).on('click', 'a', function (e) {
|
||||||
if (this.target !== '') {
|
if (this.target !== '' || (this.protocol !== 'http:' && this.protocol !== 'https:')) {
|
||||||
return;
|
return;
|
||||||
} else if (hrefEmpty(this.href) || this.protocol === 'javascript:' || $(this).attr('data-ajaxify') === 'false' || $(this).attr('href') === '#') {
|
} else if (hrefEmpty(this.href) || this.protocol === 'javascript:' || $(this).attr('data-ajaxify') === 'false' || $(this).attr('href') === '#') {
|
||||||
return e.preventDefault();
|
return e.preventDefault();
|
||||||
|
|||||||
Reference in New Issue
Block a user