From ddaac101a51a714c4eb5d6a7d251c2451db6f713 Mon Sep 17 00:00:00 2001 From: Andrei Troie Date: Fri, 7 Sep 2018 23:56:23 +0100 Subject: luci-app-adblock: use placeholder in query tool Use the placeholder property on the textbox in the query tool so it's more convenient. Signed-off-by: Andrei Troie --- applications/luci-app-adblock/luasrc/view/adblock/query.htm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'applications') diff --git a/applications/luci-app-adblock/luasrc/view/adblock/query.htm b/applications/luci-app-adblock/luasrc/view/adblock/query.htm index 2cf7e5baa..88108c3f2 100644 --- a/applications/luci-app-adblock/luasrc/view/adblock/query.htm +++ b/applications/luci-app-adblock/luasrc/view/adblock/query.htm @@ -11,7 +11,7 @@ This is free software, licensed under the Apache License, Version 2.0 function update_status(data) { - var domain = data.value; + var domain = data.value || data.placeholder; var input = document.getElementById('query_input'); var output = document.getElementById('query_output'); @@ -48,7 +48,7 @@ This is free software, licensed under the Apache License, Version 2.0
<%:This form allows you to query active block lists for certain domains, e.g. for whitelisting.%>
- +

-- cgit v1.2.3