summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/lib/blogs/PageView.js
diff options
context:
space:
mode:
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