Merge pull request #17654 from burgha/feature/3866/uploaddetails

fix uploadprogressbar tooltip
This commit is contained in:
Roeland Jago Douma 2019-11-17 09:12:19 +01:00 committed by GitHub
commit 29c008c962
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

5
apps/files/js/operationprogressbar.js Normal file → Executable file
View file

@ -63,9 +63,10 @@
$('#uploadprogressbar .ui-progressbar-value>em').addClass('inner'); $('#uploadprogressbar .ui-progressbar-value>em').addClass('inner');
$('#uploadprogressbar>em').replaceWith(labelHtml); $('#uploadprogressbar>em').replaceWith(labelHtml);
$('#uploadprogressbar>em').addClass('outer'); $('#uploadprogressbar>em').addClass('outer');
$('#uploadprogressbar').tooltip({placement: 'bottom'}); $('#uploadprogressbar').tooltip({placement: 'bottom', container: '#uploadprogresswrapper'});
if (title) { if (title) {
$('#uploadprogressbar').attr('original-title', title); $('#uploadprogressbar').attr('data-original-title', title);
$('#uploadprogresswrapper .tooltip-inner').text(title);
} }
if(textDesktop || textMobile) { if(textDesktop || textMobile) {
$('#uploadprogresswrapper .stop').show(); $('#uploadprogresswrapper .stop').show();