WebUI: Implement path autocompletion

PR #20906.
This commit is contained in:
Paweł Kotiuk
2024-07-05 08:24:02 +02:00
committed by GitHub
parent 5ef2a1df07
commit d87533bf4c
8 changed files with 122 additions and 13 deletions

View File

@@ -8,6 +8,7 @@
<link rel="stylesheet" href="css/Window.css?v=${CACHEID}" type="text/css" />
<script src="scripts/lib/MooTools-Core-1.6.0-compat-compressed.js"></script>
<script src="scripts/download.js?v=${CACHEID}"></script>
<script src="scripts/pathAutofill.js?v=${CACHEID}"></script>
</head>
<body>
@@ -34,7 +35,7 @@
<label for="savepath">QBT_TR(Save files to location:)QBT_TR[CONTEXT=HttpServer]</label>
</td>
<td>
<input type="text" id="savepath" name="savepath" style="width: 16em;" />
<input type="text" id="savepath" name="savepath" class="pathDirectory" style="width: 16em;" />
</td>
</tr>
<tr>
@@ -171,6 +172,8 @@
if ((Browser.platform === "ios") || ((Browser.platform === "mac") && (navigator.maxTouchPoints > 1)))
$("fileselect").accept = ".torrent";
window.qBittorrent.pathAutofill.attachPathAutofill();
</script>
</body>