continue VC

This commit is contained in:
Daniel Barbero Martin 2019-09-24 13:18:34 +02:00
parent 50c37e56c9
commit c9f15e877d
5 changed files with 20 additions and 5 deletions

View File

@ -683,7 +683,21 @@ function createVisualConsole(
//Danguerous empty form if necessary for cleaned IDs.
$formElement.empty();
}
},
buttons: [
{
text: "Cancel",
click: function() {
$formElement.dialog("close");
}
},
{
text: "Update",
click: function() {
console.log(formContainer);
}
}
]
});
// TODO: Add submit and reset button.
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -219,14 +219,16 @@ export class FormContainer {
}
});
/*
// Add buttons.
const submitBtn = document.createElement("input");
submitBtn.className = "sub upd";
submitBtn.type = "submit";
submitBtn.value = type === "creation" ? t("Create") : t("Update");
*/
form.appendChild(formContent);
form.appendChild(submitBtn);
//form.appendChild(submitBtn);
return form;
}

View File

@ -246,7 +246,6 @@ class CustomGraphInputGroup extends InputGroup<Partial<ModuleGraphProps>> {
if (data instanceof Array) {
const customGraphSelect = document.createElement("select");
customGraphSelect.required = true;
data.forEach(option => {
const optionElement = document.createElement("option");