Skip to content

Commit

Permalink
feat(filepicker): Allow to pass target for rendering the file picker …
Browse files Browse the repository at this point in the history
…to different locations

Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr committed Mar 1, 2023
1 parent 4bcddc5 commit 8b663d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/OC/dialogs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 8b663d0

Please sign in to comment.