add cancel button listener
This commit is contained in:
parent
99ef947b1c
commit
36dadf5e9a
@ -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