Permalink
Browse files

link opens in new tab

  • Loading branch information...
1 parent e56e12c commit a8ff43fdcff04eb711c2bb72187905875b67e6d0 @sukhada committed Mar 16, 2013
Showing with 1 addition and 2 deletions.
  1. +1 −2 reddit.js
View
3 reddit.js
@@ -108,8 +108,7 @@ function loadPosts() {
if (result.data.children[i] != undefined) {
var img = result.data.children[i].data.title;
if (!result.data.children[i].data.over_18) {
- $("#posts").append("<li><span class='upvotes'>" +result.data.children[i].data.ups+ "<span class='labelupvotes'>upvotes</span></span><a class='mainlink' href='" +
- result.data.children[i].data.url +"'><span class='title'>" + img + "</span></a><span class='author'>Submitted by <span class='color'>"
+ $("#posts").append("<li><span class='upvotes'>" +result.data.children[i].data.ups+ "<span class='labelupvotes'>upvotes</span></span><a class='mainlink' href='" + result.data.children[i].data.url +"' target='_blank'><span class='title'>" + img + "</span></a><span class='author'>Submitted by <span class='color'>"
+ result.data.children[i].data.author+ "</span></span> to <span class='subreddit'>" + result.data.children[i].data.subreddit+
" </span><span class='comments'><a href='http://www.reddit.com"+ result.data.children[i].data.permalink +"'>"+
result.data.children[i].data.num_comments + " comments</a></span></li>");

0 comments on commit a8ff43f

Please sign in to comment.