summaryrefslogtreecommitdiffstats
path: root/module/web/static/js/views/dashboard
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-03-30 15:39:56 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-03-30 15:39:56 +0100
commit76f760fe029303ba2ff203759a8332a628a9a7ec (patch)
tree1ce40a9de659b540b602d98af0ec3998604ac868 /module/web/static/js/views/dashboard
parentfix in update file info, moved recaptcha back (diff)
downloadpyload-76f760fe029303ba2ff203759a8332a628a9a7ec.tar.xz
plugin chooser for settings
Diffstat (limited to 'module/web/static/js/views/dashboard')
-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('&nbsp;&nbsp;' + 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();