From 76f760fe029303ba2ff203759a8332a628a9a7ec Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sat, 30 Mar 2013 15:39:56 +0100 Subject: plugin chooser for settings --- module/web/static/js/views/dashboard/fileView.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'module/web/static/js/views/dashboard') diff --git a/module/web/static/js/views/dashboard/fileView.js b/module/web/static/js/views/dashboard/fileView.js index c673041b5..5d687a111 100644 --- a/module/web/static/js/views/dashboard/fileView.js +++ b/module/web/static/js/views/dashboard/fileView.js @@ -77,7 +77,7 @@ define(['jquery', 'backbone', 'underscore', 'app', 'utils/apitypes', 'views/abst }, progress_changed: function() { - if(!this.model.isDownload()) + if (!this.model.isDownload()) return; if (this.model.get('download').status === Api.DownloadStatus.Downloading) { @@ -89,6 +89,10 @@ define(['jquery', 'backbone', 'underscore', 'app', 'utils/apitypes', 'views/abst bar.width(this.model.get('progress') + '%'); bar.html('  ' + formatTime(this.model.get('eta'))); + } else if (this.model.get('download').status === Api.DownloadStatus.Waiting) { + this.$('.second').html( + " " + formatTime(this.model.get('eta'))); + } else // Every else state can be renderred normally this.render(); -- cgit v1.2.3