luci-app-firewall: fix cbi form for rules
authorJo-Philipp Wich <jo@mein.io>
Sun, 21 Jul 2019 09:12:13 +0000 (11:12 +0200)
committerJo-Philipp Wich <jo@mein.io>
Sun, 21 Jul 2019 20:35:24 +0000 (22:35 +0200)
commit0be4ad51a0bea3e1e3e6cd7d646e11ec6c722540
tree70b5fcaab0ae1b2a2651e420dfd2cd424ad4d05c
parentca94c7805c2edd4ac29f27b16d8bee6ae09eb1d0
luci-app-firewall: fix cbi form for rules

 - Set src/dest defaults only in initial section create state, otherwise it
   is impossible to specify output rules
 - Get rid of dest_remote/dest_local widget switching and implement change
   logic directly in tools.widgets.CBIZoneSelect
 - Remove leftover debug code

Ref: https://github.com/openwrt/luci/issues/2889
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/rules.js
modules/luci-base/htdocs/luci-static/resources/tools/widgets.js