summaryrefslogtreecommitdiffstats
path: root/pyload/web
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-12-29 21:07:28 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-12-29 21:07:28 +0100
commit8318540e162cccbb049bebebc5aca03384a1e4e9 (patch)
tree5b4dc38520a82b5c8044a026ab996be1d71a782e /pyload/web
parentadded auth to request class (diff)
downloadpyload-8318540e162cccbb049bebebc5aca03384a1e4e9.tar.xz
added progress type enum, new DebugCrypter + Hoster, little improvements for crypter api
Diffstat (limited to 'pyload/web')
-rw-r--r--pyload/web/app/scripts/models/Progress.js2
-rw-r--r--pyload/web/app/scripts/utils/apitypes.js1
2 files changed, 3 insertions, 0 deletions
diff --git a/pyload/web/app/scripts/models/Progress.js b/pyload/web/app/scripts/models/Progress.js
index b0bbb684d..c4480e018 100644
--- a/pyload/web/app/scripts/models/Progress.js
+++ b/pyload/web/app/scripts/models/Progress.js
@@ -14,6 +14,8 @@ define(['jquery', 'backbone', 'underscore', 'utils/apitypes'], function($, Backb
eta: -1,
done: -1,
total: -1,
+ owner: -1,
+ type: 0,
download: null
},
diff --git a/pyload/web/app/scripts/utils/apitypes.js b/pyload/web/app/scripts/utils/apitypes.js
index 12ad6b78d..fc92425de 100644
--- a/pyload/web/app/scripts/utils/apitypes.js
+++ b/pyload/web/app/scripts/utils/apitypes.js
@@ -11,6 +11,7 @@ define([], function() {
MediaType: {'All': 0, 'Audio': 2, 'Image': 4, 'Executable': 64, 'Other': 1, 'Video': 8, 'Document': 16, 'Archive': 32},
PackageStatus: {'Paused': 1, 'Remote': 3, 'Folder': 2, 'Ok': 0},
Permission: {'All': 0, 'Interaction': 32, 'Modify': 4, 'Add': 1, 'Accounts': 16, 'Plugins': 64, 'Download': 8, 'Delete': 2},
+ ProgressType: {'LinkCheck': 8, 'All': 0, 'FileOperation': 32, 'Decrypting': 4, 'Other': 1, 'Download': 2, 'Addon': 16},
Role: {'Admin': 0, 'User': 1},
};
}); \ No newline at end of file