Commit 4ac49f56 authored by Franco Fichtner's avatar Franco Fichtner

firewall/NAT: defer javascript execution to avoid error; #208

parent 0e3ea048
...@@ -909,6 +909,7 @@ include("head.inc"); ...@@ -909,6 +909,7 @@ include("head.inc");
<script type="text/javascript"> <script type="text/javascript">
//<![CDATA[ //<![CDATA[
$(document).ready(function() {
ext_change(); ext_change();
dst_change(document.iform.interface.value,'<?=htmlspecialchars($pconfig['interface'])?>','<?=htmlspecialchars($pconfig['dst'])?>'); dst_change(document.iform.interface.value,'<?=htmlspecialchars($pconfig['interface'])?>','<?=htmlspecialchars($pconfig['dst'])?>');
var iface_old = document.iform.interface.value; var iface_old = document.iform.interface.value;
...@@ -918,6 +919,7 @@ include("head.inc"); ...@@ -918,6 +919,7 @@ include("head.inc");
show_source(); show_source();
<?php endif; ?> <?php endif; ?>
nordr_change(); nordr_change();
});
//]]> //]]>
</script> </script>
<script type="text/javascript"> <script type="text/javascript">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment