Skip to content

Commit

Permalink
link opens in new tab
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name Here committed Mar 16, 2013
1 parent e56e12c commit a8ff43f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions reddit.js
Expand Up @@ -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>");
Expand Down

0 comments on commit a8ff43f

Please sign in to comment.