Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Mueller <chrinimue@posteo.me>2020-03-31 13:56:59 +0300
committerChristopher Mueller <chrinimue@posteo.me>2020-03-31 13:56:59 +0300
commitb69d76feeedc27a5753ccb6363f666ba9ec121aa (patch)
tree94197f194178eb9b05175956c63ab907be910a2d /apps/files_sharing/js
parentdc9df2b7ab908539c3f793108c1c49b764e446f3 (diff)
Add basic progressbar to public upload page
Signed-off-by: Christopher Mueller <chrinimue@posteo.me>
Diffstat (limited to 'apps/files_sharing/js')
-rw-r--r--apps/files_sharing/js/files_drop.js2
-rw-r--r--apps/files_sharing/js/templates/files_drop.handlebars3
2 files changed, 4 insertions, 1 deletions
diff --git a/apps/files_sharing/js/files_drop.js b/apps/files_sharing/js/files_drop.js
index 26bb04a001a..c3af5c22062 100644
--- a/apps/files_sharing/js/files_drop.js
+++ b/apps/files_sharing/js/files_drop.js
@@ -120,9 +120,11 @@
if(progress === 100) {
$('#drop-upload-done-indicator').removeClass('hidden');
$('#drop-upload-progress-indicator').addClass('hidden');
+ $('#drop-upload-progress-bar').val(100);
} else {
$('#drop-upload-done-indicator').addClass('hidden');
$('#drop-upload-progress-indicator').removeClass('hidden');
+ $('#drop-upload-progress-bar').val(progress);
}
}
});
diff --git a/apps/files_sharing/js/templates/files_drop.handlebars b/apps/files_sharing/js/templates/files_drop.handlebars
index b090e829793..d4cc3e85b91 100644
--- a/apps/files_sharing/js/templates/files_drop.handlebars
+++ b/apps/files_sharing/js/templates/files_drop.handlebars
@@ -1,6 +1,7 @@
<li data-toggle="tooltip" title="{{name}}" data-name="{{name}}">
{{#if isUploading}}
- <span class="icon-loading-small"></span> {{name}}
+ <small>{{name}}</small><a id="status"></a>
+ <progress id="drop-upload-progress-bar" value="0" max="100"></progress>
{{else}}
<img src="{{iconSrc}}"/> {{name}}
{{/if}}