luci-app-adblock: Fix enter key submitting form but not showing any results.
authorStefan Sundin <git@stefansundin.com>
Thu, 27 Feb 2020 02:53:49 +0000 (18:53 -0800)
committerDirk Brenken <dev@brenken.org>
Mon, 2 Mar 2020 20:09:56 +0000 (21:09 +0100)
Signed-off-by: Stefan Sundin <git@stefansundin.com>
(cherry picked from commit 872693761117238aa5caff0408612a7467bb6a89)

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>