Merged pull request #38 from MayhemYDG/master.

Fix #30, #39
This commit is contained in:
James Campos 2011-04-28 11:54:35 -07:00
commit d26d933bde
2 changed files with 8 additions and 9 deletions

View File

@ -1326,7 +1326,7 @@
} }
}, },
update: function(e) { update: function(e) {
var arr, body, br, count, id, input, replies, reply, s, timer, _i, _len, _ref, _ref2, _results; var arr, body, br, count, id, input, replies, reply, timer, _i, _len, _ref, _ref2, _results;
count = $('#count'); count = $('#count');
timer = $('#timer'); timer = $('#timer');
if (this.status === 404) { if (this.status === 404) {
@ -1340,8 +1340,7 @@
input.disabled = true; input.disabled = true;
input.value = 404; input.value = 404;
} }
s = d.title.match(/.+- /)[0]; d.title = d.title.match(/.+- /)[0] + 404;
s += '404';
Favicon.update(); Favicon.update();
return; return;
} }
@ -1590,8 +1589,9 @@
titlePost = { titlePost = {
init: function() { init: function() {
var tc; var tc;
tc = $('span.filetitle').textContent || $('blockquote').textContent; if (tc = $('span.filetitle').textContent || $('blockquote').textContent) {
return d.title = "/" + g.BOARD + "/ - " + tc; return d.title = "/" + g.BOARD + "/ - " + tc;
}
} }
}; };
quickReport = { quickReport = {

View File

@ -1054,8 +1054,7 @@ updater =
for input in $$ 'input[type=submit]' for input in $$ 'input[type=submit]'
input.disabled = true input.disabled = true
input.value = 404 input.value = 404
s = d.title.match(/.+- /)[0] d.title = d.title.match(/.+- /)[0] + 404
s += '404'
Favicon.update() Favicon.update()
return return
@ -1245,8 +1244,8 @@ localize =
titlePost = titlePost =
init: -> init: ->
tc = $('span.filetitle').textContent or $('blockquote').textContent if tc = $('span.filetitle').textContent or $('blockquote').textContent
d.title = "/#{g.BOARD}/ - #{tc}" d.title = "/#{g.BOARD}/ - #{tc}"
quickReport = quickReport =
init: -> init: ->