download buttons for yml plans
This commit is contained in:
parent
41227eb77e
commit
762d5a5114
|
@ -72,10 +72,13 @@ div>label {
|
||||||
});
|
});
|
||||||
update_plan();
|
update_plan();
|
||||||
|
|
||||||
document.getElementById("base_plan").addEventListener("keydown", (event) => {
|
["base", "extension"].forEach((id) => {
|
||||||
if (event.key === 'Enter') {
|
create_element_link(document.getElementById("download_" + id), document.getElementById(id + "_plan").value);
|
||||||
update_plan()
|
document.getElementById("download_" + id).addEventListener("keydown", (event) => {
|
||||||
}
|
if (event.key === 'Enter') {
|
||||||
|
update_plan()
|
||||||
|
}
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
create_element_link(document.getElementById("create_link"), function() {
|
create_element_link(document.getElementById("create_link"), function() {
|
||||||
|
@ -316,6 +319,8 @@ div>label {
|
||||||
<div id="togglebuttons"></div>
|
<div id="togglebuttons"></div>
|
||||||
<div>
|
<div>
|
||||||
<button id="download">Download list</button>
|
<button id="download">Download list</button>
|
||||||
|
<button id="download_base">Download base plan</button>
|
||||||
|
<button id="download_extension">Download extension plan</button>
|
||||||
<button id="create_link">Create link</button>
|
<button id="create_link">Create link</button>
|
||||||
<button onclick="help()">Help</button>
|
<button onclick="help()">Help</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue