diff options
Diffstat (limited to 'pyload/web/app/scripts/models/File.js')
-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'); }, |