summaryrefslogtreecommitdiffstats
path: root/module/web/static/js/models/Progress.js
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-03-21 11:39:16 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-03-21 11:39:16 +0100
commit67c4c19e5aa19c09d5dbefdc8077cda3941713c7 (patch)
tree6a94eccafeebea368ff4fce4389c5e70e2ac2423 /module/web/static/js/models/Progress.js
parentimproved ui, render waiting files (diff)
downloadpyload-67c4c19e5aa19c09d5dbefdc8077cda3941713c7.tar.xz
render package stats, speedgraph
Diffstat (limited to 'module/web/static/js/models/Progress.js')
-rw-r--r--module/web/static/js/models/Progress.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/module/web/static/js/models/Progress.js b/module/web/static/js/models/Progress.js
index 87e7b350b..96beb0198 100644
--- a/module/web/static/js/models/Progress.js
+++ b/module/web/static/js/models/Progress.js
@@ -35,10 +35,7 @@ define(['jquery', 'backbone', 'underscore', 'utils/apitypes'], function($, Backb
toJSON: function(options) {
var obj = Backbone.Model.prototype.toJSON.call(this, options);
obj.percent = this.getPercent();
- if (this.isDownload() && this.get('download').status === Api.DownloadStatus.Downloading)
- obj.downloading = true;
- else
- obj.downloading = false;
+ obj.downloading = this.isDownload() && this.get('download').status === Api.DownloadStatus.Downloading;
return obj;
},