aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstonedDiscord <Tukz@gmx.de>2023-12-21 01:40:38 +0100
committerstonedDiscord <Tukz@gmx.de>2023-12-21 01:40:38 +0100
commit9422827df1cd293a37bdc3c58b0f920dbfec54ec (patch)
tree44598ada8bde27552482f89eec9e9b586d99e097
parent965e3e937065511fe9052ac687f54c1528a1e043 (diff)
Revert "Merge pull request #212 from Troid-Tech/searchable-pairing-partner"
This reverts commit 965e3e937065511fe9052ac687f54c1528a1e043, reversing changes made to b288429cca94a461c8fa3d1936905d7e0e601d7f.
-rw-r--r--public/client.html10
-rw-r--r--webAO/client/handleCharacterInfo.ts6
2 files changed, 7 insertions, 9 deletions
diff --git a/public/client.html b/public/client.html
index d283a3b..d8de174 100644
--- a/public/client.html
+++ b/public/client.html
@@ -67,10 +67,9 @@
<center>
<p>You seem to be new 👋</p>
<form method="POST">
- <div class="h-captcha" data-sitekey="6cbe7d73-706d-4e4b-9147-8b9aebb83b5d" data-theme="dark"
- data-callback="hcallback"></div>
+ <div class="h-captcha" data-sitekey="6cbe7d73-706d-4e4b-9147-8b9aebb83b5d" data-theme="dark" data-callback="hcallback"></div>
<script src="https://js.hcaptcha.com/1/api.js" async defer></script>
- </form>
+ </form>
</center>
</div>
<div id="client_charselect">
@@ -249,10 +248,9 @@
onclick="toggleElement('pairing_settings')">Pairing</button>
<span id="pairing_settings" style="display: none">
<label for="pair_select">Pairing partner:</label>
- <input list="pair_select" placeholder="Search...">
- <datalist name="pair_select" id="pair_select">
+ <select name="pair_select" id="pair_select">
<option value="-1">None</option>
- </datalist>
+ </select>
<table style="border: none;margin-left: auto;margin-right: auto;">
<tr>
<td>
diff --git a/webAO/client/handleCharacterInfo.ts b/webAO/client/handleCharacterInfo.ts
index 72dd727..9d74a8b 100644
--- a/webAO/client/handleCharacterInfo.ts
+++ b/webAO/client/handleCharacterInfo.ts
@@ -51,10 +51,10 @@ export const handleCharacterInfo = async (chargs: string[], charid: number) => {
document.getElementById("mute_select")
);
mute_select.add(new Option(safeTags(chargs[0]), String(charid)));
- const pair_select = <HTMLDataListElement>(
+ const pair_select = <HTMLSelectElement>(
document.getElementById("pair_select")
);
- pair_select.appendChild(new Option(safeTags(chargs[0]), String(charid)));
+ pair_select.add(new Option(safeTags(chargs[0]), String(charid)));
// sometimes ini files lack important settings
const default_options = {
@@ -102,4 +102,4 @@ export const handleCharacterInfo = async (chargs: string[], charid: number) => {
console.warn(`missing charid ${charid}`);
img.style.display = "none";
}
-}
+} \ No newline at end of file