diff options
author | Tomasz Grobelny <tomasz@grobelny.net> | 2018-11-13 23:19:08 +0100 |
---|---|---|
committer | Tomasz Grobelny <tomasz@grobelny.net> | 2018-11-24 23:55:25 +0100 |
commit | 7bafa54ae168a25b47d579fdca4cec19f2e1534f (patch) | |
tree | e332089920c9c7c8a570f62120f0c53accd67125 /apps/files/js/operationprogressbar.js | |
parent | e99340dc4da5f3a86ae32a14ef318b0d8b8f20fd (diff) | |
download | nextcloud-server-7bafa54ae168a25b47d579fdca4cec19f2e1534f.tar.gz nextcloud-server-7bafa54ae168a25b47d579fdca4cec19f2e1534f.zip |
Fix progress bar label
Signed-off-by: Tomasz Grobelny <tomasz@grobelny.net>
Diffstat (limited to 'apps/files/js/operationprogressbar.js')
-rw-r--r-- | apps/files/js/operationprogressbar.js | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/apps/files/js/operationprogressbar.js b/apps/files/js/operationprogressbar.js index 1d96c2374d4..0ce532af494 100644 --- a/apps/files/js/operationprogressbar.js +++ b/apps/files/js/operationprogressbar.js @@ -18,10 +18,9 @@ render: function() { this.$el.html(OCA.Files.Templates['operationprogressbar']({ - textDesktop: t('Uploading …'), - textMobile: t('…'), textCancelButton: t('Cancel operation') })); + this.setProgressBarText(t('Uploading …'), t('…')); }, hideProgressBar: function() { @@ -50,12 +49,11 @@ }, setProgressBarText: function(textDesktop, textMobile, title) { - $('#uploadprogressbar .ui-progressbar-value'). - html('<em class="label inner"><span class="desktop">' - + textDesktop - + '</span><span class="mobile">' - + textMobile - + '</span></em>'); + var labelHtml = OCA.Files.Templates['operationprogressbarlabel']({textDesktop: textDesktop, textMobile: textMobile}); + $('#uploadprogressbar .ui-progressbar-value').html(labelHtml); + $('#uploadprogressbar .ui-progressbar-value>em').addClass('inner'); + $('#uploadprogressbar>em').replaceWith(labelHtml); + $('#uploadprogressbar>em').addClass('outer'); $('#uploadprogressbar').tooltip({placement: 'bottom'}); if(title) { $('#uploadprogressbar').attr('original-title', title); |