remove a $.log, shorter archive link text.

This commit is contained in:
Nicolas Stepien 2012-06-27 22:43:56 +02:00
parent 469b60a4c5
commit 8dd9300541
2 changed files with 2 additions and 4 deletions

View File

@ -1125,7 +1125,6 @@
}
Menu.lastOpener = this;
post = /\bhidden_thread\b/.test(this.parentNode.className) ? $.x('ancestor::div[parent::div[@class="board"]]/child::div[contains(@class,"opContainer")]', this) : $.x('ancestor::div[contains(@class,"postContainer")][1]', this);
$.log(postContainer);
return Menu.open(this, Main.preParse(post));
},
open: function(button, post) {
@ -4010,7 +4009,7 @@
var path;
path = $('.postNum > a[title="Highlight this post"]', post.el).pathname.split('/');
a.href = Redirect.thread(path[1], path[3], post.ID);
return a.textContent = "Archived post No." + post.ID;
return a.textContent = 'Archived post';
},
requirement: function(post) {
var path;

View File

@ -861,7 +861,6 @@ Menu =
$.x 'ancestor::div[parent::div[@class="board"]]/child::div[contains(@class,"opContainer")]', @
else
$.x 'ancestor::div[contains(@class,"postContainer")][1]', @
$.log postContainer
Menu.open @, Main.preParse post
open: (button, post) ->
{el} = Menu
@ -3148,7 +3147,7 @@ ArchiveLink =
open: (post) ->
path = $('.postNum > a[title="Highlight this post"]', post.el).pathname.split '/'
a.href = Redirect.thread path[1], path[3], post.ID
a.textContent = "Archived post No.#{post.ID}"
a.textContent = 'Archived post'
requirement: (post) ->
path = $('.postNum > a[title="Highlight this post"]', post.el).pathname.split '/'
Redirect.thread(path[1], path[3]) isnt "//boards.4chan.org/#{path[1]}/"