download buttons for yml plans
This commit is contained in:
parent
41227eb77e
commit
762d5a5114
|
@ -72,11 +72,14 @@ div>label {
|
|||
});
|
||||
update_plan();
|
||||
|
||||
document.getElementById("base_plan").addEventListener("keydown", (event) => {
|
||||
["base", "extension"].forEach((id) => {
|
||||
create_element_link(document.getElementById("download_" + id), document.getElementById(id + "_plan").value);
|
||||
document.getElementById("download_" + id).addEventListener("keydown", (event) => {
|
||||
if (event.key === 'Enter') {
|
||||
update_plan()
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
create_element_link(document.getElementById("create_link"), function() {
|
||||
return window.location.href.split('?')[0] + '?'
|
||||
|
@ -316,6 +319,8 @@ div>label {
|
|||
<div id="togglebuttons"></div>
|
||||
<div>
|
||||
<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 onclick="help()">Help</button>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue