summaryrefslogtreecommitdiffstats
path: root/module/web/static/js/views/headerView.js
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-03-21 21:30:02 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-03-21 21:30:02 +0100
commit5340ae11d9b73105a8a831cbdce87303338ca9b1 (patch)
treef1ae9fb835db7a0dc5bd561e9457726e93008060 /module/web/static/js/views/headerView.js
parentlittle fixes, use global progress to render single task (diff)
downloadpyload-5340ae11d9b73105a8a831cbdce87303338ca9b1.tar.xz
subline for global progress
Diffstat (limited to 'module/web/static/js/views/headerView.js')
-rw-r--r--module/web/static/js/views/headerView.js8
1 files changed, 6 insertions, 2 deletions
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)