From a46a5a014192a0810f90a884ecd939b5c792346b Mon Sep 17 00:00:00 2001 From: Mayhem Date: Sat, 14 Dec 2013 15:23:11 +0100 Subject: [PATCH 01/11] Stop building mobile nodes. --- src/General/Build.coffee | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/src/General/Build.coffee b/src/General/Build.coffee index 28074703d..04aeaed80 100644 --- a/src/General/Build.coffee +++ b/src/General/Build.coffee @@ -212,25 +212,9 @@ Build = '' }'>" + - "
" + - "" + - "#{name or ''}" + tripcode + - capcodeStart + capcode + userID + flag + sticky + closed + - "
#{subject}" + - "
#{date}" + - "No." + - "#{postID}" + - '' + - '
' + - (if isOP then fileHTML else '') + - "
" + + "" else if file - ext = file.name[-3..] - if !file.twidth and !file.theight and ext is 'gif' # wtf ? - file.twidth = file.width - file.theight = file.height - - fileSize = $.bytesToString file.size - + fileSize = $.bytesToString file.size fileThumb = file.turl if file.isSpoiler fileSize = "Spoiler Image, #{fileSize}" @@ -150,20 +143,17 @@ Build = "#{fileSize}" + "" - # Ha ha, filenames! # html -> text, translate WebKit's %22s into "s a = $.el 'a', innerHTML: file.name filename = a.textContent.replace /%22/g, '"' - # shorten filename, get html a.textContent = Build.shortFilename filename shortFilename = a.innerHTML - # get html a.textContent = filename filename = a.innerHTML.replace /'/g, ''' - fileDims = if ext is 'pdf' then 'PDF' else "#{file.width}x#{file.height}" + fileDims = if file.name[-3..] is 'pdf' then 'PDF' else "#{file.width}x#{file.height}" fileInfo = "
File: #{file.timestamp}" + "-(#{fileSize}, #{fileDims}#{ if file.isSpoiler @@ -176,11 +166,6 @@ Build = else fileHTML = '' - tripcode = if tripcode - " #{tripcode}" - else - '' - sticky = if isSticky " Sticky" else @@ -213,11 +198,11 @@ Build = "