Skip to content

Commit

Permalink
V1.2.4 - Modify code to get script working in new Review (reported by…
Browse files Browse the repository at this point in the history
… Oliver Salzburg http://stackapps.com/a/3540). Hat-tip to Shog9 for the fix.
  • Loading branch information
Benjol committed Jul 17, 2012
1 parent 5d2d776 commit a850a66
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions autoreviewcomments.user.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name AutoReviewComments
// @namespace benjol
// @version 1.2.3
// @version 1.2.4
// @description Add pro-forma comments dialog for reviewing (pre-flag)
// @include http://*stackoverflow.com/questions*
// @include http://*stackoverflow.com/review*
Expand Down Expand Up @@ -51,7 +51,7 @@ function with_jquery(f) {
with_jquery(function ($) {
StackExchange.ready(function () {
//**selfupdatingscript starts here (see https://gist.github.com/raw/874058/selfupdatingscript.user.js)
var VERSION = '1.2.3'; //<<<<<<<<<<<<*********************** DON'T FORGET TO UPDATE THIS!!!! *************************
var VERSION = '1.2.4'; //<<<<<<<<<<<<*********************** DON'T FORGET TO UPDATE THIS!!!! *************************
var URL = "https://gist.github.com/raw/842025/autoreviewcomments.user.js";

if(window["selfUpdaterCallback:" + URL]) {
Expand Down Expand Up @@ -551,10 +551,10 @@ with_jquery(function ($) {
});
});
}

//This is where the real work starts - add the 'auto' link next to each comment 'help' link
//use most local root-nodes possible (have to exist on page load) - #questions is for review pages
$(".question, .answer, #questions, .flag-container, .mod-post-header").delegate(".comments-link", "click", function () {
$("#content").delegate(".comments-link", "click", function () {
var divid = $(this).attr('id').replace('-link', '');
var posttype = $(this).parents(".question, .answer").attr("class");

Expand Down

0 comments on commit a850a66

Please sign in to comment.