diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-12-30 19:52:29 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-12-30 19:52:29 +0100 |
commit | 1e338a279aba747534fd1e7aedc8d7aec319f5f2 (patch) | |
tree | 87f809fabd8c11f45d193475937223bfd097e33c /pyload/web/app/scripts/collections/ProgressList.js | |
parent | added progress type enum, new DebugCrypter + Hoster, little improvements for ... (diff) | |
download | pyload-1e338a279aba747534fd1e7aedc8d7aec319f5f2.tar.xz |
show progress of decrypting and link checking, added indicator in link grabber
Diffstat (limited to 'pyload/web/app/scripts/collections/ProgressList.js')
-rw-r--r-- | pyload/web/app/scripts/collections/ProgressList.js | 8 |
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; + }); } }); |