Fix Post in Title if there is no title or comment.

This commit is contained in:
Mayhem 2011-04-28 19:04:45 +02:00
parent 9e56a5ca45
commit 68cc8ad517
2 changed files with 5 additions and 4 deletions

View File

@ -1590,8 +1590,9 @@
titlePost = {
init: function() {
var tc;
tc = $('span.filetitle').textContent || $('blockquote').textContent;
return d.title = "/" + g.BOARD + "/ - " + tc;
if (tc = $('span.filetitle').textContent || $('blockquote').textContent) {
return d.title = "/" + g.BOARD + "/ - " + tc;
}
}
};
quickReport = {

View File

@ -1245,8 +1245,8 @@ localize =
titlePost =
init: ->
tc = $('span.filetitle').textContent or $('blockquote').textContent
d.title = "/#{g.BOARD}/ - #{tc}"
if tc = $('span.filetitle').textContent or $('blockquote').textContent
d.title = "/#{g.BOARD}/ - #{tc}"
quickReport =
init: ->