Skip to content

Node.js based forum software built for the modern web

added a way to disable ajaxify on links manually if needed.

psychobunny338acb8fc243
diff --git a/public/src/ajaxify.js b/public/src/ajaxify.js
index 81344db292..2887b4a301 100644
--- a/public/src/ajaxify.js
+++ b/public/src/ajaxify.js
@@ -120,6 +120,10 @@ var ajaxify = {};
if(!window.location.pathname.match(/\/(403|404)$/g))
app.previousUrl = window.location.href;
+ if (this.getAttribute('data-ajaxify') == 'false') {
+ return;
+ }
+
if (!e.ctrlKey && e.which === 1) {
if (this.host === window.location.host) {
// Internal link