Merge pull request #1818 from dibdot/lxc_fix
[project/luci.git] / applications / luci-app-adblock / luasrc / view / adblock / query.htm
index be60630..8bbc926 100644 (file)
@@ -1,5 +1,4 @@
 <%#
-Copyright 2016 Hannu Nyman
 Copyright 2017 Dirk Brenken (dev@brenken.org)
 This is free software, licensed under the Apache License, Version 2.0
 -%>
@@ -25,7 +24,7 @@ This is free software, licensed under the Apache License, Version 2.0
                        ;
                        input.parentNode.style.display = 'block';
                        input.style.display = 'inline';
-                       stxhr.post('<%=url('admin/services/adblock/advanced/result/')%>' + domain, { token: '<%=token%>' },
+                       stxhr.post('<%=luci.dispatcher.build_url('admin/services/adblock/advanced/result/')%>' + domain, { token: '<%=token%>' },
                                function(x)
                                {
                                        if (x.responseText)
@@ -50,7 +49,7 @@ This is free software, licensed under the Apache License, Version 2.0
                <fieldset 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 style="margin: 5px 0" type="text" value="www.lede-project.org" name="input" />
+                               <input style="margin: 5px 0" type="text" value="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" />