Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/js/dist/login.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion core/js/dist/login.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions core/js/dist/main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion core/js/dist/main.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions core/src/OC/dialogs.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ const Dialogs = {
'none',
buttons,
callback,
modal
modal === undefined ? true : modal
)
},
/**
Expand Down Expand Up @@ -1245,7 +1245,7 @@ const Dialogs = {
dir: '',
name: '' // Ugly but works ;)
}, { escapeFunction: null }).prependTo(this.$dirTree)

},
/**
* handle selection made in the tree list
Expand Down
4 changes: 4 additions & 0 deletions core/src/jquery/css/jquery.ocdialog.scss
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@
height: 100%;
}

body.dark .oc-dialog-dim {
opacity: .8;
}

.oc-dialog-content {
width: 100%;
max-width: 550px;
Expand Down
7 changes: 6 additions & 1 deletion core/src/jquery/ocdialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,14 @@ $.widget('oc.ocdialog', {
}

const self = this
let contentDiv = $('#content')
if (contentDiv.length === 0) {
// nextcloud-vue compatibility
contentDiv = $('.content')
}
this.overlay = $('<div>')
.addClass('oc-dialog-dim')
.appendTo($('#content'))
.appendTo(contentDiv)
this.overlay.on('click keydown keyup', function(event) {
if (event.target !== self.$dialog.get(0) && self.$dialog.find($(event.target)).length === 0) {
event.preventDefault()
Expand Down