luci-app-adblock: Fix enter key submitting form but not showing any results. 3688/head
authorStefan Sundin <git@stefansundin.com>
Thu, 27 Feb 2020 02:53:49 +0000 (18:53 -0800)
committerStefan Sundin <git@stefansundin.com>
Thu, 27 Feb 2020 03:08:21 +0000 (19:08 -0800)
Signed-off-by: Stefan Sundin <git@stefansundin.com>
applications/luci-app-adblock/luasrc/view/adblock/query.htm

index 88108c3f21dc71a043662b4b6467d0bff8aeb0d7..fb659958dbce77a9b5a69bb20a30a4db74e4fd2c 100644 (file)
@@ -43,7 +43,7 @@ This is free software, licensed under the Apache License, Version 2.0
 //]]>
 </script>
 
-<form method="post" action="<%=REQUEST_URI%>">
+<form method="post" action="<%=REQUEST_URI%>" onsubmit="update_status(this.input); return false;">
        <div class="cbi-map">
                <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>