diff options
Diffstat (limited to 'module/web/static/js/models/Progress.js')
-rw-r--r-- | module/web/static/js/models/Progress.js | 5 |
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; }, |