diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-12-11 11:53:22 -0600 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-12-11 11:53:22 -0600 |
| commit | 5680371ea44af2bd576e9b936c9e43ee5ab47376 (patch) | |
| tree | 9691d493e42d28c754dc9bd6818e25cf326cb556 /StoneIsland/platforms/ios/www/js/lib/blogs/PageView.js | |
| parent | eb16730a9bbce746e6f77451c46c3f3c0139e509 (diff) | |
0.3.5
Diffstat (limited to 'StoneIsland/platforms/ios/www/js/lib/blogs/PageView.js')
| -rwxr-xr-x | StoneIsland/platforms/ios/www/js/lib/blogs/PageView.js | 8 |
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 |
