From 416b0df4b60df8e596b096118e9cc6d0db8d6f21 Mon Sep 17 00:00:00 2001 From: James Campos Date: Sat, 16 Apr 2011 21:09:28 -0700 Subject: [PATCH] fix titlePost --- 4chan_x.js | 6 +++--- script.coffee | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/4chan_x.js b/4chan_x.js index 778c532fe..db6ef3893 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -1649,9 +1649,9 @@ }; titlePost = { init: function() { - var el; - el = $('span.filetitle') || $('blockquote'); - return d.title = "/" + g.BOARD + "/ - " + el.textContent; + var tc; + tc = $('span.filetitle').textContent || $('blockquote').textContent; + return d.title = "/" + g.BOARD + "/ - " + tc; } }; imgPreloading = { diff --git a/script.coffee b/script.coffee index 83141ceb1..3db0644eb 100644 --- a/script.coffee +++ b/script.coffee @@ -1292,8 +1292,8 @@ localize = titlePost = init: -> - el = $('span.filetitle') or $('blockquote') - d.title = "/#{g.BOARD}/ - #{el.textContent}" + tc = $('span.filetitle').textContent or $('blockquote').textContent + d.title = "/#{g.BOARD}/ - #{tc}" imgPreloading = init: ->