diff options
author | 2013-07-09 21:45:02 +0200 | |
---|---|---|
committer | 2013-07-09 21:45:02 +0200 | |
commit | 18c6342ce19374de5199978b0e2f8c19135d7f46 (patch) | |
tree | 5f0b87bf2372468c006a48601dad1a42dc00ffce /pyload/web/app/scripts/models | |
parent | little fixes for actionbar and selection (diff) | |
download | pyload-18c6342ce19374de5199978b0e2f8c19135d7f46.tar.xz |
render progress correctly again
Diffstat (limited to 'pyload/web/app/scripts/models')
-rw-r--r-- | pyload/web/app/scripts/models/File.js | 5 |
1 files changed, 5 insertions, 0 deletions
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'); }, |