summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2023-03-01 10:59:55 +0100
committerJulius Härtl <jus@bitgrid.net>2023-03-02 21:01:44 +0100
commit1da4fe48cff5494fc8aa4f46439dc43f57e89a70 (patch)
tree37486dfb6231d324a9bcfb610ef36a05aaba31b8 /core
parent6130f1a78ea4f7fba3e3690528f2b53a0d9f5b82 (diff)
downloadnextcloud-server-1da4fe48cff5494fc8aa4f46439dc43f57e89a70.tar.gz
nextcloud-server-1da4fe48cff5494fc8aa4f46439dc43f57e89a70.zip
feat(filepicker): Allow to pass target for rendering the file picker to different locations
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'core')
-rw-r--r--core/src/OC/dialogs.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/OC/dialogs.js b/core/src/OC/dialogs.js
index 692f8c9fe1f..91b0e2fffea 100644
--- a/core/src/OC/dialogs.js
+++ b/core/src/OC/dialogs.js
@@ -309,7 +309,7 @@ const Dialogs = {
multiselect = false
}
- $('body').prepend(self.$filePicker)
+ $(options?.target ?? 'body').prepend(self.$filePicker)
self.$showGridView = $('button#picker-showgridview')
self.$showGridView.on('click keydown', function(event) {