Changes

fix 0.4
Line 1: Line 1:  
(function($, ArticleComments){
 
(function($, ArticleComments){
 
"use strict";
 
"use strict";
console.log("Close Thread v0.3");
+
console.log("Close Thread v0.4");
    
function ExecCloseThreads(){
 
function ExecCloseThreads(){
$(ClosedThreads).each(function(index, comment_id){
+
$($(".wikiCloseCommentThread")).each(function(){
console.log("Closing: "+comment_id);
+
console.log("Closing: "+this.closest(".comment" ).attr("id"));
$(".article-comm-reply", $(".wikiCloseCommentThread").closest(".comment" )).hide();
+
$(".article-comm-reply", this.closest(".comment" )).hide();
 
});
 
});
 
}
 
}
15

edits