Skip to content
Open
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
12 changes: 8 additions & 4 deletions core/dom/dom.ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -811,8 +811,12 @@ var jeeDialog = (function() {
})
return toast
}
exports.clearToasts = function() {
document.querySelectorAll('.jeeToastContainer')?.remove()
exports.clearToasts = function(_scope) {
document.querySelectorAll('.jeeToastContainer').forEach(function(_container) {
if (!_scope || _scope.contains(_container)) {
_container.remove()
}
})
return true
}

Expand Down Expand Up @@ -1604,7 +1608,7 @@ var jeeDialog = (function() {
close: function() {
this.dialog._jeeDialog.options.beforeClose()
this.dialog.querySelector('div.jeeDialogContent').empty()
jeeDialog.clearToasts()
jeeDialog.clearToasts(this.dialog)
this.dialog.unseen()
this.dialog._jeeDialog.options.onClose()
this.dialog.removeClass('active')
Expand Down Expand Up @@ -1804,7 +1808,7 @@ var jeeCtxMenu = function(_options) {
display: null
})
_ctxMenu.seen()

//Is there use positionning:
if (ctxInstance.options.position) {
ctxInstance.options.position.apply(ctxInstance, [ctxInstance, _event.clientX, _event.clientY])
Expand Down
Loading