diff --git a/angular.html b/angular.html
index db9d8ed..7b94041 100644
--- a/angular.html
+++ b/angular.html
@@ -339,25 +339,25 @@
+
diff --git a/js/ctrls/download.js b/js/ctrls/download.js
index 414ecb7..3e8f193 100644
--- a/js/ctrls/download.js
+++ b/js/ctrls/download.js
@@ -147,8 +147,14 @@ function(
return false;
};
- scope.hasStatus = function(d, status) {
- return d.status == status;
+ scope.hasStatus = function hasStatus(d, status) {
+ if (_.isArray(status)) {
+ if (status.length == 0) return false;
+ return hasStatus(d, status[0]) || hasStatus(d, status.slice(1));
+ }
+ else {
+ return d.status == status;
+ }
};
// get time left for the download with