Skip to content

Commit

Permalink
Whoops, mangled the revision URL again by accident
Browse files Browse the repository at this point in the history
  • Loading branch information
tms committed Dec 5, 2011
1 parent ff03ca8 commit 052be6b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions SEModifications.user.js
Expand Up @@ -123,13 +123,14 @@ with_jquery(function ($) {
);
$(".post-menu").each(function() {
var self = $(this),
postLink = question;
postLink = question,
id = self.find("a:contains('link')")[0].href.replace(/^.*\/a\//, "").replace(/\/\d+(?:#.*)?$/, "");;

console.log("post-menu each");

if (!revisions) {
revisions = "/posts/" + postLink + "/revisions";
postLink = postLink + '/' + self.find("a:contains('link')")[0].href.replace(/^.*\/a\//, "").replace(/\/\d+(?:#.*)?$/, "");
revisions = "/posts/" + id + "/revisions";
postLink = postLink + '/' + id;
}

self.append("<span class='lsep'>|</span><a href='" + revisions + "'>history</a>")
Expand Down

0 comments on commit 052be6b

Please sign in to comment.