From 18c6342ce19374de5199978b0e2f8c19135d7f46 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Tue, 9 Jul 2013 21:45:02 +0200 Subject: render progress correctly again --- pyload/web/app/scripts/models/File.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pyload/web/app/scripts/models') diff --git a/pyload/web/app/scripts/models/File.js b/pyload/web/app/scripts/models/File.js index 3beb7f270..562e6b0ae 100644 --- a/pyload/web/app/scripts/models/File.js +++ b/pyload/web/app/scripts/models/File.js @@ -71,6 +71,11 @@ define(['jquery', 'backbone', 'underscore', 'app', 'utils/apitypes'], function($ }, + setDownloadStatus: function(status) { + if (this.isDownload()) + this.get('download').status = status; + }, + isDownload: function() { return this.has('download'); }, -- cgit v1.2.3