From 946daebac9aca6d2161edac56d5c3b184db5a1dc Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Fri, 7 Sep 2012 20:20:48 +0200 Subject: [PATCH] Fix for deleted files. --- 4chan_x.user.js | 4 ++-- script.coffee | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 842e70a71..03f854597 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -3689,7 +3689,7 @@ dateUTC: data.time, comment: data.com }; - if (data.ext) { + if (data.ext || data.filedeleted) { o.file = { name: data.filename + data.ext, timestamp: "" + data.tim + data.ext, @@ -3802,8 +3802,8 @@ } tripcode = tripcode ? " " + tripcode + "" : ''; container = $.el('div', { - className: "postContainer " + (isOP ? 'op' : 'reply') + "Container", id: "pc" + postID, + className: "postContainer " + (isOP ? 'op' : 'reply') + "Container", innerHTML: (isOP ? '' : "
>>
") + ("
") + ("' + (isOP ? fileHTML : '') + ("' + (isOP ? '' : fileHTML) + ("
" + comment + "
") + '
' }); _ref = $$('.quotelink', container); diff --git a/script.coffee b/script.coffee index 99763ca6a..f0d1e0c71 100644 --- a/script.coffee +++ b/script.coffee @@ -2912,7 +2912,7 @@ Build = dateUTC: data.time comment: data.com # file - if data.ext + if data.ext or data.filedeleted o.file = name: data.filename + data.ext timestamp: "#{data.tim}#{data.ext}" @@ -3053,8 +3053,8 @@ Build = '' container = $.el 'div', - className: "postContainer #{if isOP then 'op' else 'reply'}Container" id: "pc#{postID}" + className: "postContainer #{if isOP then 'op' else 'reply'}Container" innerHTML: \ (if isOP then '' else "
>>
") + "
" +