From 5340ae11d9b73105a8a831cbdce87303338ca9b1 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Thu, 21 Mar 2013 21:30:02 +0100 Subject: subline for global progress --- module/web/static/js/views/headerView.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'module/web/static/js/views') diff --git a/module/web/static/js/views/headerView.js b/module/web/static/js/views/headerView.js index 164c6d715..7705b7076 100644 --- a/module/web/static/js/views/headerView.js +++ b/module/web/static/js/views/headerView.js @@ -97,11 +97,12 @@ define(['jquery', 'underscore', 'backbone', 'app', 'models/ServerStatus', 'colle // TODO: what should be displayed in the header // queue/processing size? + var status = this.status.toJSON(); this.$('.status-block').html( - this.templateStatus(this.status.toJSON()) + this.templateStatus(status) ); - var data = {tasks: 0, downloads: 0, speed: 0, single:false}; + var data = {tasks: 0, downloads: 0, speed: 0, single: false}; this.progressList.each(function(progress) { if (progress.isDownload()) { data.downloads += 1; @@ -121,6 +122,9 @@ define(['jquery', 'underscore', 'backbone', 'app', 'models/ServerStatus', 'colle } // TODO: better progressbar rendering + data.etaqueue = status.eta; + data.linksqueue = status.linksqueue; + data.sizequeue = status.sizequeue; this.$('#progress-info').html( this.templateHeader(data) -- cgit v1.2.3