mirror of
https://github.com/pi-hole/web.git
synced 2025-12-25 05:05:33 +00:00
Make sure ip-custom field is editable when no suggestions are available
Signed-off-by: Jack'lul <jacklulcat@gmail.com>
This commit is contained in:
@@ -32,6 +32,10 @@ function reload_client_suggestions() {
|
||||
sel.append($("<option />").val(key).text(text));
|
||||
}
|
||||
|
||||
if (data.length === 0) {
|
||||
$("#ip-custom").prop("disabled", false);
|
||||
}
|
||||
|
||||
sel.append($("<option />").val("custom").text("Custom, specified below..."));
|
||||
if (customWasSelected) {
|
||||
sel.val("custom");
|
||||
|
||||
Reference in New Issue
Block a user