Skip to content

Commit

Permalink
attr not a function? Says who?
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Hamilton committed Jan 30, 2012
1 parent 7393fe2 commit 9141863
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scaffold.js
Expand Up @@ -376,7 +376,8 @@ function scaffoldPost(post) {

userLink = authorCell.children("a[href*='user_info']");
userLink.addClass("user_link");
userID = userLink.attr("href").split("=")[1];
userLinkURL = userLink.attr("href");
userID = userLinkURL.split("=")[1];
parentSpan = userLink.parent();
userName = parentSpan.parent().children().filter("b:first").text();
userLink.attr("title", userName);
Expand Down

0 comments on commit 9141863

Please sign in to comment.