]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blobdiff - html/cgi-bin/fwhosts.cgi
Firewall: Language changes, JQuery code cleanup
[people/teissler/ipfire-2.x.git] / html / cgi-bin / fwhosts.cgi
index 8803ab859c8832afc48ebd21c97d46f74aee618d..cbe325c1d066e61afe0b928a51a76924f868a865 100755 (executable)
@@ -98,29 +98,15 @@ print<<END;
                // Check if we are dealing with a protocol, that knows ports.
                if (\$.inArray(protocol, PROTOCOLS_WITH_PORTS) >= 0) {
                        \$("#PORT").show();
+                       \$("#PROTOKOLL").hide();
                } else {
                        \$("#PORT").hide();
-               }
-
-               // Handle ICMP.
-               if (protocol === "ICMP") {
                        \$("#PROTOKOLL").show();
-               } else {
-                       \$("#PROTOKOLL").hide();
                }
        };
 
        \$(document).ready(function() {
                var protocol = \$("#protocol").val();
-
-               // Handle ICMP.
-               if (protocol === "ICMP") {
-                       \$("#PROTOKOLL").show();
-                       \$("#PORT").hide();
-               } else {
-                       \$("#PROTOKOLL").hide();
-                       \$("#PORT").show();
-               }
                \$("#protocol").change(update_protocol);
                update_protocol();
        });