Skip to content

Commit

Permalink
[webUI] Fixed link not auto-updating
Browse files Browse the repository at this point in the history
  • Loading branch information
NSPC911 committed Oct 7, 2024
1 parent 6d0e1ab commit 9524c9a
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 31 deletions.
8 changes: 4 additions & 4 deletions webUI/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ function toggleSelection(element) {
console.log(`Selected ${element.dataset.name}`);
}
updateSelectedTweaks();
/*var selectedTweaks = getSelectedTweaks();
var dataCategory = element.dataset.category;
var selectedTweaks = getSelectedTweaks();
updateURL(getSelectedTweaks());
/*var dataCategory = element.dataset.category;
const selectAllElement =
element.parentElement.parentElement.parentElement.querySelector(
".category-label-selectall",
Expand All @@ -39,8 +40,7 @@ function toggleSelection(element) {
selectAll("", selectAllElement);
} else {
partialSelected(selectAllElement);
}
updateURL(getSelectedTweaks());*/
}*/
}

function updateSelectedTweaks() {
Expand Down
48 changes: 23 additions & 25 deletions webUI/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7193,33 +7193,31 @@
</div>
<div class="download-container">
<div class="file-download">
<input id="fileNameInput" placeholder="Enter Pack name" type="text">
<br>
<select id="mev" name="mev">
<option value="1.21.0">
1.21
</option>
<option value="1.20.0">
1.20
</option>
<option value="1.19.0">
1.19
</option>
<option value="1.18.0">
1.18
</option>
<option value="1.17.0">
1.17
</option>
<option value="1.16.0">
1.16
</option>
</select>
</input>
<input id="fileNameInput" placeholder="Enter Pack name" type="text"/>
<br>
<select id="mev" name="mev">
<option value="1.21.0">
1.21
</option>
<option value="1.20.0">
1.20
</option>
<option value="1.19.0">
1.19
</option>
<option value="1.18.0">
1.18
</option>
<option value="1.17.0">
1.17
</option>
<option value="1.16.0">
1.16
</option>
</select>
</div>
<div class="zipinputcontainer">
<input id="zipInput" type="file">
</input>
<input id="zipInput" type="file"/>
</div>
<button class="download-selected-button" onclick="downloadSelectedTweaks()">
Download Selected Tweaks
Expand Down
4 changes: 2 additions & 2 deletions webUI/index.html.template
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
</div>
<div class="download-container">
<div class="file-download">
<input id="fileNameInput" placeholder="Enter Pack name" type="text"/>
<input id="fileNameInput" placeholder="Enter Pack name" type="text"></input>
<br>
<select id="mev" name="mev">
<option value="1.21.0">
Expand All @@ -104,7 +104,7 @@
</select>
</div>
<div class="zipinputcontainer">
<input id="zipInput" type="file"/>
<input id="zipInput" type="file"></input>
</div>
<button class="download-selected-button" onclick="downloadSelectedTweaks()">
Download Selected Tweaks
Expand Down

0 comments on commit 9524c9a

Please sign in to comment.