Merge pull request #2136 from aft90/luci-app-adblock-query-box-placeholder

luci-app-adblock: use placeholder in query tool
This commit is contained in:
Dirk Brenken 2018-09-08 20:23:15 +02:00 committed by GitHub
commit fb27334aef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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" />