summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/lib/blogs/PageView.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-12-11 11:33:44 -0600
committerJules Laplace <jules@okfoc.us>2015-12-11 11:33:44 -0600
commiteb16730a9bbce746e6f77451c46c3f3c0139e509 (patch)
treecb3dd444094ba60d27bceaa7a01d90eadb87a3e5 /StoneIsland/www/js/lib/blogs/PageView.js
parentaa5a9b7c7cd52a69f8dd1d0cdc15475e113e6da0 (diff)
profile shit and faq links
Diffstat (limited to 'StoneIsland/www/js/lib/blogs/PageView.js')
-rwxr-xr-xStoneIsland/www/js/lib/blogs/PageView.js8
1 files changed, 8 insertions, 0 deletions
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, "<br>"))
+ 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