From 338acb8fc2432efaaef3028632bc7860f7b07609 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Sat, 12 Oct 2013 17:43:29 -0400 Subject: [PATCH] added a way to disable ajaxify on links manually if needed. --- public/src/ajaxify.js | 4 ++++ 1 file changed, 4 insertions(+) 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