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) {
|
const toolbarElement = this;
|
||||||
toolbarElement = this;
|
|
||||||
}
|
|
||||||
const confirmQuestion = toolbarElement.dataset.confirmation;
|
const confirmQuestion = toolbarElement.dataset.confirmation;
|
||||||
if (confirmQuestion !== undefined && !window.confirm(confirmQuestion)) {
|
if (confirmQuestion !== undefined && !window.confirm(confirmQuestion)) {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue