diff --git a/src/General/Build.coffee b/src/General/Build.coffee index f7395d548..30284fe23 100755 --- a/src/General/Build.coffee +++ b/src/General/Build.coffee @@ -145,7 +145,6 @@ Build = fileSize = $.bytesToString file.size fileThumb = file.turl if file.isSpoiler - fileSize = "Spoiler Image, #{fileSize}" unless isArchived fileThumb = "#{h_staticPath}spoiler" if spoilerRange = Build.spoilerRange[boardID] @@ -153,7 +152,9 @@ Build = fileThumb += "-#{boardID}" + Math.floor 1 + spoilerRange * Math.random() fileThumb += '.png' file.twidth = file.theight = 100 - shortFilename = Build.shortFilename file.name + shortFilename = 'Spoiler Image' + else + shortFilename = Build.shortFilename file.name if boardID is 'f' h_imgSrc = '' @@ -166,14 +167,17 @@ Build = h_fileDims = 'PDF' else h_fileDims = "#{+file.width}x#{+file.height}" - h_fileInfo = "
#{E shortFilename}" - h_fileInfo += ')
' + h_fileTitle1 = " title='#{E file.name}'" + else if file.name isnt shortFilename + h_fileTitle2 = " title='#{E file.name}'" + + h_fileInfo = "
" + h_fileInfo += "File: #{E shortFilename} (#{E fileSize}, #{h_fileDims})" + h_fileInfo += '
' h_file = "
#{h_fileInfo}#{h_imgSrc}
" else