mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 15:05:46 +01:00
fixes #2711 :rage2:
This commit is contained in:
@@ -275,7 +275,9 @@ $(document).ready(function() {
|
||||
|
||||
// Enhancing all anchors to ajaxify...
|
||||
$(document.body).on('click', 'a', function (e) {
|
||||
if (hrefEmpty(this.href) || this.target !== '' || this.protocol === 'javascript:' || $(this).attr('data-ajaxify') === 'false') {
|
||||
if (this.target !== '') {
|
||||
return;
|
||||
} else if (hrefEmpty(this.href) || this.protocol === 'javascript:' || $(this).attr('data-ajaxify') === 'false') {
|
||||
return e.preventDefault();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user