From 666ab67a8e819a54678927d0891d103cd3f6adae Mon Sep 17 00:00:00 2001 From: Hannes Burger Date: Tue, 22 Oct 2019 21:01:23 +0200 Subject: [PATCH 1/2] fix uploadprogressbar tooltip Signed-off-by: Hannes Burger --- apps/files/js/operationprogressbar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 apps/files/js/operationprogressbar.js diff --git a/apps/files/js/operationprogressbar.js b/apps/files/js/operationprogressbar.js old mode 100644 new mode 100755 index 1c054ec67b..e98b419d6c --- a/apps/files/js/operationprogressbar.js +++ b/apps/files/js/operationprogressbar.js @@ -65,7 +65,7 @@ $('#uploadprogressbar>em').addClass('outer'); $('#uploadprogressbar').tooltip({placement: 'bottom'}); if(title) { - $('#uploadprogressbar').attr('original-title', title); + $('#uploadprogressbar').attr('data-original-title', title); } if(textDesktop || textMobile) { $('#uploadprogresswrapper .stop').show(); From e4c6d033e1a44a04bae2953b1226e0660d9a80f4 Mon Sep 17 00:00:00 2001 From: Hannes Burger Date: Wed, 23 Oct 2019 17:25:27 +0200 Subject: [PATCH 2/2] update tooltip content dynamically Signed-off-by: Hannes Burger --- apps/files/js/operationprogressbar.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/files/js/operationprogressbar.js b/apps/files/js/operationprogressbar.js index e98b419d6c..f1138163f1 100755 --- a/apps/files/js/operationprogressbar.js +++ b/apps/files/js/operationprogressbar.js @@ -63,9 +63,10 @@ $('#uploadprogressbar .ui-progressbar-value>em').addClass('inner'); $('#uploadprogressbar>em').replaceWith(labelHtml); $('#uploadprogressbar>em').addClass('outer'); - $('#uploadprogressbar').tooltip({placement: 'bottom'}); - if(title) { + $('#uploadprogressbar').tooltip({placement: 'bottom', container: '#uploadprogresswrapper'}); + if (title) { $('#uploadprogressbar').attr('data-original-title', title); + $('#uploadprogresswrapper .tooltip-inner').text(title); } if(textDesktop || textMobile) { $('#uploadprogresswrapper .stop').show();