git-svn-id: https://svn.code.sf.net/p/freetel/code@735 01035d8c-6547-0410-b346-abe4f9...
authorhorse69 <horse69@01035d8c-6547-0410-b346-abe4f91aad63>
Mon, 1 Oct 2012 01:53:16 +0000 (01:53 +0000)
committerhorse69 <horse69@01035d8c-6547-0410-b346-abe4f91aad63>
Mon, 1 Oct 2012 01:53:16 +0000 (01:53 +0000)
mini-asterisk-gui2/network.js

index 9caa3c0e1a298977c812096ad63070f3f83297af..2d8465e1ba85ed6aa8014d0496b3100785a9c422 100644 (file)
@@ -40,16 +40,16 @@ function doStatic() {
 function greyout(dhcp) {
 
     if (dhcp == "yes") {
-       document.network.static.checked = 0;
-       document.network.dhcp.checked = 1;
+       document.getElementById("static").checked = 0;
+       document.getElementById("dhcp").checked = 1;
        document.network.ipaddress.disabled = 1;
        document.network.netmask.disabled = 1;
        document.network.gateway.disabled = 1;
        document.network.dns.disabled = 1;
     }
     else {
-       document.network.static.checked = 1;
-       document.network.dhcp.checked = 0;
+       document.getElementById("static").checked = 1;
+       document.getElementById("dhcp").checked = 0;
        document.network.ipaddress.disabled = 0;
        document.network.netmask.disabled = 0;
        document.network.gateway.disabled = 0;