]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/commitdiff
Firewall: cleanup of unused JS variables.
authorAlexander Marx <amarx@ipfire.org>
Sun, 5 Jan 2014 14:18:24 +0000 (15:18 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 5 Jan 2014 20:16:12 +0000 (21:16 +0100)
html/cgi-bin/firewall.cgi

index b9f7d36db1f3fba574a4e5d1653ca486c85718ac..29b70b442c1300e9ac8a58dfc02d3939b9b38eda 100755 (executable)
@@ -158,11 +158,6 @@ print<<END;
                // dropdown menu changes.
                \$("select").change(function() {
                        var id = \$(this).attr("name");
-
-                       // When using SNAT or DNAT, check "USE NAT" Checkbox
-                       if (id === 'snat' || id === 'dnat') {
-                               \$('#USE_NAT').prop('checked', true);
-                       }
                        \$('#' + id).prop("checked", true);
                });
        });
@@ -1595,7 +1590,7 @@ END
                                                <td width='5%'></td>
                                                <td width='40%'>
                                                        <label>
-                                                               <input type='radio' name='nat' id='use_dnat' value='dnat' $checked{'nat'}{'dnat'}>
+                                                               <input type='radio' name='nat'  value='dnat' $checked{'nat'}{'dnat'}>
                                                                $Lang::tr{'fwdfw dnat'}
                                                        </label>
                                                </td>
@@ -1628,7 +1623,7 @@ END
                                                <td width='5%'></td>
                                                <td width='40%'>
                                                        <label>
-                                                               <input type='radio' name='nat' id='use_snat' value='snat' $checked{'nat'}{'snat'}>
+                                                               <input type='radio' name='nat'  value='snat' $checked{'nat'}{'snat'}>
                                                                $Lang::tr{'fwdfw snat'}
                                                        </label>
                                                </td>