add cancel button listener
This commit is contained in:
parent
e31c91679f
commit
85f7fac100
@ -13,6 +13,11 @@ async function init () {
|
||||
let type = uriData.type;
|
||||
let vmid = uriData.vmid;
|
||||
await populateForm(node, type, vmid);
|
||||
|
||||
let cancelButton = document.querySelector("#cancel");
|
||||
cancelButton.addEventListener("click", () => {
|
||||
goToPage("index.html");
|
||||
});
|
||||
}
|
||||
|
||||
async function populateForm (node, type, vmid) {
|
||||
|
Loading…
Reference in New Issue
Block a user