Fix subject selector in Get.title. Fix filename filtering in case of spoiler image.

This commit is contained in:
Nicolas Stepien 2012-09-11 18:33:25 +02:00
parent 5f537f0405
commit 5a26f3883d
2 changed files with 4 additions and 4 deletions

View File

@ -749,7 +749,7 @@
var img;
img = post.img;
if (img) {
return img.alt;
return img.alt.replace('Spoiler Image, ', '');
}
return false;
},
@ -3679,7 +3679,7 @@
title: function(thread) {
var el, op, span;
op = $('.op', thread);
el = $('.subject', op);
el = $('.postInfo .subject', op);
if (!el.textContent) {
el = $('blockquote', op);
if (!el.textContent) {

View File

@ -587,7 +587,7 @@ Filter =
filesize: (post) ->
{img} = post
if img
return img.alt
return img.alt.replace 'Spoiler Image, ', ''
false
md5: (post) ->
{img} = post
@ -2890,7 +2890,7 @@ Get =
root
title: (thread) ->
op = $ '.op', thread
el = $ '.subject', op
el = $ '.postInfo .subject', op
unless el.textContent
el = $ 'blockquote', op
unless el.textContent