diff options
author | Andrei Troie <andreitroie90@gmail.com> | 2018-09-07 23:56:23 +0100 |
---|---|---|
committer | Andrei Troie <andreitroie90@gmail.com> | 2018-09-07 23:59:20 +0100 |
commit | ddaac101a51a714c4eb5d6a7d251c2451db6f713 (patch) | |
tree | d75cfa377ebeb44f63663b2b77b7a11781fa4176 /applications/luci-app-adblock/luasrc | |
parent | 18b4483fe76885061ea8d57e01a2fafc25de7790 (diff) |
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 <andreitroie90@gmail.com>
Diffstat (limited to 'applications/luci-app-adblock/luasrc')
-rw-r--r-- | applications/luci-app-adblock/luasrc/view/adblock/query.htm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/applications/luci-app-adblock/luasrc/view/adblock/query.htm b/applications/luci-app-adblock/luasrc/view/adblock/query.htm index 2cf7e5baaf..88108c3f21 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 <div class="cbi-section"> <div class="cbi-section-descr"><%:This form allows you to query active block lists for certain domains, e.g. for whitelisting.%></div> <div style="width:33%; float:left;"> - <input type="text" value="google.com" name="input" /> + <input type="text" placeholder="google.com" name="input" /> <input type="button" value="<%:Query%>" class="cbi-button cbi-button-apply" onclick="update_status(this.form.input)" /> </div> <br style="clear:both" /> |