summaryrefslogtreecommitdiffstats
path: root/pyload/web/app/scripts/collections
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-12-30 19:52:29 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-12-30 19:52:29 +0100
commit1e338a279aba747534fd1e7aedc8d7aec319f5f2 (patch)
tree87f809fabd8c11f45d193475937223bfd097e33c /pyload/web/app/scripts/collections
parentadded progress type enum, new DebugCrypter + Hoster, little improvements for ... (diff)
downloadpyload-1e338a279aba747534fd1e7aedc8d7aec319f5f2.tar.xz
show progress of decrypting and link checking, added indicator in link grabber
Diffstat (limited to 'pyload/web/app/scripts/collections')
-rw-r--r--pyload/web/app/scripts/collections/ProgressList.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/pyload/web/app/scripts/collections/ProgressList.js b/pyload/web/app/scripts/collections/ProgressList.js
index 51849d8de..51132d86d 100644
--- a/pyload/web/app/scripts/collections/ProgressList.js
+++ b/pyload/web/app/scripts/collections/ProgressList.js
@@ -11,6 +11,14 @@ define(['jquery', 'backbone', 'underscore', 'models/Progress'], function($, Back
initialize: function() {
+ },
+
+ // returns all progresses, that bit matches the given type
+ // types have to be or'ed
+ byType: function(types) {
+ return this.filter(function(progress) {
+ return (progress.get('type') & types) !== 0;
+ });
}
});