summaryrefslogtreecommitdiffstats
path: root/apps/files_external/js
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-02-22 15:04:23 +0100
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-02-22 15:45:37 +0100
commit323dd310568447f3c63b8d9128c75a18a75c3527 (patch)
tree8296d451f9695be21e6a4b21f303cc04b28d96f2 /apps/files_external/js
parent1f3eef94609b728179fe29084939931ecbd94df0 (diff)
downloadnextcloud-server-323dd310568447f3c63b8d9128c75a18a75c3527.tar.gz
nextcloud-server-323dd310568447f3c63b8d9128c75a18a75c3527.zip
Tooltip fix on status icon
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files_external/js')
-rw-r--r--apps/files_external/js/settings.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/files_external/js/settings.js b/apps/files_external/js/settings.js
index 7f56fd4bb73..b0f71c03245 100644
--- a/apps/files_external/js/settings.js
+++ b/apps/files_external/js/settings.js
@@ -1246,7 +1246,12 @@ MountConfigListView.prototype = _.extend({
default:
$statusSpan.attr('class', 'error icon-error-white');
}
- $statusSpan.attr('data-original-title', (typeof message === 'string') ? message : '');
+ if (typeof message === 'string') {
+ $statusSpan.attr('title', message);
+ $statusSpan.tooltip();
+ } else {
+ $statusSpan.tooltip('destroy');
+ }
},
/**