From 1da4fe48cff5494fc8aa4f46439dc43f57e89a70 Mon Sep 17 00:00:00 2001 From: Julius Härtl Date: Wed, 1 Mar 2023 10:59:55 +0100 Subject: feat(filepicker): Allow to pass target for rendering the file picker to different locations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- core/src/OC/dialogs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3