summaryrefslogtreecommitdiffstats
path: root/module/web/static/js/views/dashboard/fileView.js
diff options
context:
space:
mode:
Diffstat (limited to 'module/web/static/js/views/dashboard/fileView.js')
-rw-r--r--module/web/static/js/views/dashboard/fileView.js6
1 files changed, 5 insertions, 1 deletions
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(
+ "<i class='iconf-time'></i>&nbsp;" + formatTime(this.model.get('eta')));
+
} else // Every else state can be renderred normally
this.render();