From 557047c6ac9dba801837043ca66344d9cbc5e6f4 Mon Sep 17 00:00:00 2001 From: kilo Date: Tue, 7 Nov 2017 21:23:57 +0100 Subject: [PATCH] Update view.jet.html --- templates/site/torrents/view.jet.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/templates/site/torrents/view.jet.html b/templates/site/torrents/view.jet.html index 70cc1a96..668686d3 100644 --- a/templates/site/torrents/view.jet.html +++ b/templates/site/torrents/view.jet.html @@ -52,7 +52,7 @@ {{ T("size")}}: - {{ fileSize(Torrent.Filesize, T, true) }} + {{ fileSize(Torrent.Filesize, T, true) }} {{ if len(Torrent.Languages) > 0 && Torrent.Languages[0] != "" }} @@ -347,7 +347,8 @@ Modal.Init({ FileListContainer.innerHTML = "" FileListLabel.style.opacity = 1 document.getElementById("filelist").style.opacity = 1 - + if(data.totalsize != "0.0 B") document.getElementsByClassName("torrent-info-size")[0].innerHTML = data.totalsize + for(var i = 0; i < data.filelist.length; i++) { var file = data.filelist[i] if(file.filesize == "0.0 B") file.filesize = "{{T("unknown")}}"