summaryrefslogtreecommitdiffstats
path: root/apps/files_external/js
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2020-04-02 17:22:42 +0200
committerRobin Appelman <robin@icewind.nl>2020-04-03 15:44:53 +0200
commit857957b45e563b9ac789adec0374d486c71a96ed (patch)
treed3cc2627234dfcb87abe55a502ee9687bdbb9531 /apps/files_external/js
parentbc6a5ef5c4431ca662424dbd1125e65e74b27fa8 (diff)
downloadnextcloud-server-857957b45e563b9ac789adec0374d486c71a96ed.tar.gz
nextcloud-server-857957b45e563b9ac789adec0374d486c71a96ed.zip
allow setting tooltips for external storage config options
allows explaining non-obvious config options a bit more Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files_external/js')
-rw-r--r--apps/files_external/js/settings.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/files_external/js/settings.js b/apps/files_external/js/settings.js
index c7e06506340..93a27d5f75d 100644
--- a/apps/files_external/js/settings.js
+++ b/apps/files_external/js/settings.js
@@ -999,6 +999,11 @@ MountConfigListView.prototype = _.extend({
} else {
newElement = $('<input type="text" class="'+classes.join(' ')+'" data-parameter="'+parameter+'" placeholder="'+ trimmedPlaceholder+'" />');
}
+
+ if (placeholder.tooltip) {
+ newElement.attr('title', placeholder.tooltip);
+ }
+
highlightInput(newElement);
$td.append(newElement);
return newElement;