From 3cc42f16260ac4b7e18336bb159816bcf4a824d3 Mon Sep 17 00:00:00 2001 From: hamza zia Date: Sun, 24 Mar 2013 09:57:56 +0100 Subject: [PATCH] minor fixes and remove statistics when no downloads, better way to hide them comming soon --- index.html | 6 +++--- js/services/utils.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index e7be6f9..59b9b8a 100755 --- a/index.html +++ b/index.html @@ -207,7 +207,7 @@ -
+

Currently no downloads in line to display, use the Add download button to start downloading files!

@@ -522,12 +522,12 @@ -

Global Statistics

+

Global Statistics

+ dgraph ng-show="totalAria2Downloads()">
diff --git a/js/services/utils.js b/js/services/utils.js index b87e900..dcb49d0 100644 --- a/js/services/utils.js +++ b/js/services/utils.js @@ -38,7 +38,7 @@ angular.module('webui.services.utils', []) mergeMap: function(arr, dest, func) { if (!dest) dest = []; - for (i = 0; i < dest.length; i++) { + for (var i = 0; i < dest.length; i++) { if (i >= arr.length) { // remove the deleted downloads dest.splice(i, dest.length - arr.length);