summaryrefslogtreecommitdiffstats
path: root/pyload/web/app/scripts
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-09-26 16:40:38 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-09-26 16:40:50 +0200
commit967d6dd16c25ceba22dcd105079f72534ddb87e9 (patch)
tree4c971ff446dc955f1884e5aa80ef4cb62bbf55fe /pyload/web/app/scripts
parentnew DLC plugins (diff)
downloadpyload-967d6dd16c25ceba22dcd105079f72534ddb87e9.tar.xz
rewritten decrypter and info fetching thread
Diffstat (limited to 'pyload/web/app/scripts')
-rw-r--r--pyload/web/app/scripts/helpers/linkStatus.js2
-rw-r--r--pyload/web/app/scripts/models/LinkStatus.js5
2 files changed, 4 insertions, 3 deletions
diff --git a/pyload/web/app/scripts/helpers/linkStatus.js b/pyload/web/app/scripts/helpers/linkStatus.js
index 2497785fb..448d63691 100644
--- a/pyload/web/app/scripts/helpers/linkStatus.js
+++ b/pyload/web/app/scripts/helpers/linkStatus.js
@@ -5,7 +5,7 @@ define('helpers/linkStatus', ['underscore', 'handlebars', 'utils/apitypes', 'uti
var s;
if (status === Api.DownloadStatus.Online)
s = '<span class="text-success">' + i18n.gettext('online') + '</span>';
- else if (status === Api.DownloadState.Offline)
+ else if (status === Api.DownloadStatus.Offline)
s = '<span class="text-error">' + i18n.gettext('offline') + '</span>';
else
s = '<span class="text-info">' + i18n.gettext('unknown') + '</span>';
diff --git a/pyload/web/app/scripts/models/LinkStatus.js b/pyload/web/app/scripts/models/LinkStatus.js
index 2be1ce368..be6385c9c 100644
--- a/pyload/web/app/scripts/models/LinkStatus.js
+++ b/pyload/web/app/scripts/models/LinkStatus.js
@@ -8,9 +8,10 @@ define(['jquery', 'backbone', 'underscore', 'app', 'utils/apitypes'],
defaults: {
name: '',
- plugin: '',
size: -1,
- status: Api.DownloadStatus.Queued
+ status: Api.DownloadStatus.Queued,
+ plugin: '',
+ hash: null
},
destroy: function() {