From 1e338a279aba747534fd1e7aedc8d7aec319f5f2 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Mon, 30 Dec 2013 19:52:29 +0100 Subject: show progress of decrypting and link checking, added indicator in link grabber --- pyload/web/app/scripts/collections/ProgressList.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'pyload/web/app/scripts/collections') 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; + }); } }); -- cgit v1.2.3