From d2ec61367072a154db635f04b26a13b5857f0bf2 Mon Sep 17 00:00:00 2001 From: Nils Maier Date: Mon, 3 Mar 2014 21:29:05 +0100 Subject: [PATCH] Do not use [METADATA] label, but an icon --- index.html | 2 +- js/ctrls/download.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index 5e51011..334e1c1 100755 --- a/index.html +++ b/index.html @@ -301,7 +301,7 @@ - {{download.name}} + {{download.name}} diff --git a/js/ctrls/download.js b/js/ctrls/download.js index 9820d79..a11a6df 100644 --- a/js/ctrls/download.js +++ b/js/ctrls/download.js @@ -258,6 +258,7 @@ function( fmtDownloadSpeed: utils.fmtspeed(d.downloadSpeed), uploadSpeed: d.uploadSpeed, fmtUploadSpeed: utils.fmtspeed(d.uploadSpeed), + collapsed: true, files: [] }; } @@ -333,10 +334,9 @@ function( } ctx.name = btName || dlName || "Unknown"; - - // collapse the download details initially - if (ctx.collapsed === undefined) { - ctx.collapsed = true; + ctx.metadata = ctx.name.startsWith("[METADATA]"); + if (ctx.metadata) { + ctx.name = ctx.name.substr(10); } return ctx;