From d4e4d17c5cdf143d7c717090c5d3907ca9e0e208 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Tue, 4 Jun 2013 13:40:38 -0400 Subject: [PATCH] prevent ajaxify from working on links with "target" set. added rss button as well as social icons to category listing. --- public/src/ajaxify.js | 4 +++- public/templates/category.tpl | 8 ++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/public/src/ajaxify.js b/public/src/ajaxify.js index 81155638f8..a0100cc415 100644 --- a/public/src/ajaxify.js +++ b/public/src/ajaxify.js @@ -38,7 +38,7 @@ var ajaxify = {}; } else if (templates[url]) { tpl_url = url; } - + if (templates.is_available(tpl_url) && !templates.force_refresh(tpl_url)) { if (quiet !== true) { window.history.pushState({ @@ -75,6 +75,8 @@ var ajaxify = {}; ajaxify.onclick = function(ev) { if (this.href == window.location.href + "#") return; var url = this.href.replace(rootUrl +'/', ''); + + if (this.target !== '') return; if (!ev.ctrlKey && ev.which === 1) { if (ajaxify.go(url)) { diff --git a/public/templates/category.tpl b/public/templates/category.tpl index 89cc373aa7..1a11a5d051 100644 --- a/public/templates/category.tpl +++ b/public/templates/category.tpl @@ -47,6 +47,14 @@
+