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

index 0956538cbeb7cce53f299b411d3a20e0a033def1..ca5afdecd23a0191e5a63dccbadc234bec5ceac6 100644 (file)
@@ -28,6 +28,12 @@ function initialise() {
 //    initialisePage();
 }
 
+function doDHCP() {
+}
+
+function doStatic() {
+}
+
 
 function greyout(dhcp) {
 
@@ -64,7 +70,7 @@ function processDhcp(doc,status) {
     if (dhcp == "no") {
         downloadUrl("/cgi-bin/getconf.cgi?file=../init.d/network-static", processStatic);
     } else {
-       initialistPage();
+       initialise();
        }
 }
 
@@ -163,7 +169,7 @@ function onClickApply() {
 
     // change network type, DHCP or static
 
-    if (document.network.dhcp.value == "yes") {
+    if (document.getElementById("dhcp").value == "yes") {
 
                if (dhcp = "no") {
                        // disable network-static service and endable network service