when execution confirmed scroll to executionform

This commit is contained in:
dcore94 2023-03-17 11:02:25 +01:00
parent b243178534
commit f91e32bf43
1 changed files with 2 additions and 1 deletions

View File

@ -34,6 +34,7 @@ class CCPExecutionForm extends HTMLElement{
document.addEventListener("newexecutionrequest", ev=>{ document.addEventListener("newexecutionrequest", ev=>{
if(window.confirm("Confirm overwrite of execution form?")){ if(window.confirm("Confirm overwrite of execution form?")){
this.setAttribute("method", ev.detail) this.setAttribute("method", ev.detail)
this.parentElement.scrollIntoViewIfNeeded()
} }
}) })
} }