summaryrefslogtreecommitdiff
path: root/StoneIsland/platforms/ios/www/js/lib/blogs/PageView.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-12-11 11:53:22 -0600
committerJules Laplace <jules@okfoc.us>2015-12-11 11:53:22 -0600
commit5680371ea44af2bd576e9b936c9e43ee5ab47376 (patch)
tree9691d493e42d28c754dc9bd6818e25cf326cb556 /StoneIsland/platforms/ios/www/js/lib/blogs/PageView.js
parenteb16730a9bbce746e6f77451c46c3f3c0139e509 (diff)
0.3.5
Diffstat (limited to 'StoneIsland/platforms/ios/www/js/lib/blogs/PageView.js')
-rwxr-xr-xStoneIsland/platforms/ios/www/js/lib/blogs/PageView.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/StoneIsland/platforms/ios/www/js/lib/blogs/PageView.js b/StoneIsland/platforms/ios/www/js/lib/blogs/PageView.js
index 4bf05430..fab3ff53 100755
--- a/StoneIsland/platforms/ios/www/js/lib/blogs/PageView.js
+++ b/StoneIsland/platforms/ios/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