From eb16730a9bbce746e6f77451c46c3f3c0139e509 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 11 Dec 2015 11:33:44 -0600 Subject: profile shit and faq links --- StoneIsland/www/js/lib/blogs/PageView.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'StoneIsland/www/js/lib/blogs/PageView.js') diff --git a/StoneIsland/www/js/lib/blogs/PageView.js b/StoneIsland/www/js/lib/blogs/PageView.js index 4bf05430..fab3ff53 100755 --- a/StoneIsland/www/js/lib/blogs/PageView.js +++ b/StoneIsland/www/js/lib/blogs/PageView.js @@ -19,6 +19,14 @@ var PageView = ScrollableView.extend({ populate: function(data){ this.$content.html(data.body.replace(/\n/g, "
")) + this.$content.find("a").each(function(){ + var href = $(this).attr("href") // .substr(1, "fuck".length-2) + if (href.indexOf("“")) { + href = href.substr(1, href.length-2) + $(this).attr("href", href) + } + $(this).attr("target", "_system") + }) }, }) \ No newline at end of file -- cgit v1.2.3-70-g09d2