Fix triggering toolbar actions in Firefox
This commit is contained in:
parent
ac8976bf0b
commit
43552dc9ae
|
@ -853,11 +853,9 @@ function renderUpdateOrDowngrade(value, obj, level, row)
|
|||
});
|
||||
}
|
||||
|
||||
function triggerToolbarAction(toolbarElement)
|
||||
function triggerToolbarAction()
|
||||
{
|
||||
if (!toolbarElement || toolbarElement instanceof PointerEvent) {
|
||||
toolbarElement = this;
|
||||
}
|
||||
const toolbarElement = this;
|
||||
const confirmQuestion = toolbarElement.dataset.confirmation;
|
||||
if (confirmQuestion !== undefined && !window.confirm(confirmQuestion)) {
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue