luci-app-adblock: fix SimpleForm page delegation
authorJo-Philipp Wich <jo@mein.io>
Thu, 5 Apr 2018 17:21:50 +0000 (19:21 +0200)
committerJo-Philipp Wich <jo@mein.io>
Thu, 5 Apr 2018 17:21:50 +0000 (19:21 +0200)
commit72b973b25878e5b210483a3b02f5c53dd8f0dfcf
tree1184977ecc1ddd3f6c27aaf40ef41cc2e87fe23e
parent9dcf73b323fa97534a931e3acfbab8b03ce3961f
luci-app-adblock: fix SimpleForm page delegation

Invoke the SimpleForm models using the form() action, not the cbi() ones.
This avoids the extraneous rendering of the cbi header template, avoiding
rejected save operations due to duplicated token value.

Fixes #1722.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
applications/luci-app-adblock/luasrc/controller/adblock.lua