Merge branch 'master' into menu

This commit is contained in:
Nicolas Stepien 2012-07-03 20:09:14 +02:00
commit 27d79dc72c
2 changed files with 3 additions and 2 deletions

View File

@ -691,7 +691,7 @@
email: function(post) {
var mail;
if (mail = $('.useremail', post.el)) {
return mail.href.slice(7);
return decodeURIComponent(mail.href.slice(7));
}
return false;
},

View File

@ -548,7 +548,8 @@ Filter =
email: (post) ->
if mail = $ '.useremail', post.el
# remove 'mailto:'
return mail.href[7..]
# decode %20 into space for example
return decodeURIComponent mail.href[7..]
false
subject: (post) ->
$('.postInfo .subject', post.el).textContent or false