diff options
Diffstat (limited to 'applications/luci-app-firewall')
-rw-r--r-- | applications/luci-app-firewall/luasrc/view/firewall/cbi_addforward.htm | 2 | ||||
-rw-r--r-- | applications/luci-app-firewall/luasrc/view/firewall/cbi_addrule.htm | 5 |
2 files changed, 2 insertions, 5 deletions
diff --git a/applications/luci-app-firewall/luasrc/view/firewall/cbi_addforward.htm b/applications/luci-app-firewall/luasrc/view/firewall/cbi_addforward.htm index f48599b50..1bb86821e 100644 --- a/applications/luci-app-firewall/luasrc/view/firewall/cbi_addforward.htm +++ b/applications/luci-app-firewall/luasrc/view/firewall/cbi_addforward.htm @@ -71,7 +71,7 @@ </div> <script type="text/javascript">//<![CDATA[ - cbi_bind(document.getElementById('_newfwd.extport'), 'blur', + document.getElementById('_newfwd.extport').addEventListener('blur', function() { var n = document.getElementById('_newfwd.name'); var p = document.getElementById('_newfwd.proto'); diff --git a/applications/luci-app-firewall/luasrc/view/firewall/cbi_addrule.htm b/applications/luci-app-firewall/luasrc/view/firewall/cbi_addrule.htm index 82168712a..c02fc20f9 100644 --- a/applications/luci-app-firewall/luasrc/view/firewall/cbi_addrule.htm +++ b/applications/luci-app-firewall/luasrc/view/firewall/cbi_addrule.htm @@ -72,7 +72,7 @@ <% if #zones > 0 then %> <script type="text/javascript">//<![CDATA[ cbi_validate_field('_newopen.extport', true, 'list(neg(portrange))'); - cbi_bind(document.getElementById('_newopen.extport'), 'blur', + document.getElementById('_newopen.extport').addEventListener('blur', function() { var n = document.getElementById('_newopen.name'); var p = document.getElementById('_newopen.proto'); @@ -100,8 +100,5 @@ } } }); - - - cbi_validate_field('cbi.cts.<%=self.config%>.<%=self.sectiontype%>.<%=section%>', true, 'uciname'); //]]></script> <% end %> |