summaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2023-09-21 14:37:31 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2023-10-09 22:44:36 +0200
commit39bd125a78455e44ca4ed62f858de62932b5b687 (patch)
treea5fb0d741a0f0d6acc14513591c04e4ef966fbc0 /apps/files
parent9714f0368f6927dc12ad1b5e0f2e697251b1e71c (diff)
downloadnextcloud-server-39bd125a78455e44ca4ed62f858de62932b5b687.tar.gz
nextcloud-server-39bd125a78455e44ca4ed62f858de62932b5b687.zip
Clear progress bar text when hiding it
When files are uploaded the progress bar text is set accordingly. However, other operations that show the progress bar, like deleting files, do not explicitly set any text. Due to that, when the progress bar was shown again after uploading files the text did not match the operation. To solve that now the text is cleared when the progress bar is hidden (it is not cleared when it is shown as in some cases the text is set already before showing the progress bar). Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'apps/files')
-rwxr-xr-xapps/files/js/operationprogressbar.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/files/js/operationprogressbar.js b/apps/files/js/operationprogressbar.js
index 90ad71c7c2d..c9ca18b1ae3 100755
--- a/apps/files/js/operationprogressbar.js
+++ b/apps/files/js/operationprogressbar.js
@@ -29,6 +29,7 @@
$('#uploadprogressbar').fadeOut(function() {
self.$el.trigger(new $.Event('resized'));
});
+ this.setProgressBarText('', '');
},
hideCancelButton: function() {