mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-09 15:35:47 +01:00
added a way to disable ajaxify on links manually if needed.
This commit is contained in:
@@ -120,6 +120,10 @@ var ajaxify = {};
|
|||||||
if(!window.location.pathname.match(/\/(403|404)$/g))
|
if(!window.location.pathname.match(/\/(403|404)$/g))
|
||||||
app.previousUrl = window.location.href;
|
app.previousUrl = window.location.href;
|
||||||
|
|
||||||
|
if (this.getAttribute('data-ajaxify') == 'false') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!e.ctrlKey && e.which === 1) {
|
if (!e.ctrlKey && e.which === 1) {
|
||||||
if (this.host === window.location.host) {
|
if (this.host === window.location.host) {
|
||||||
// Internal link
|
// Internal link
|
||||||
|
|||||||
Reference in New Issue
Block a user