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

index 2d8465e1ba85ed6aa8014d0496b3100785a9c422..a48fe1d0ee2ed6851d024892fab09290844d73b6 100644 (file)
@@ -72,7 +72,7 @@ function processDhcp(doc,status) {
     if (dhcp == "no") {
         downloadUrl("/cgi-bin/getconf.cgi?file=../init.d/network-static", processStatic);
     } else {
-       initialise();
+           //initialise(); endless loop
        }
 }
 
@@ -171,7 +171,7 @@ function onClickApply() {
 
     // change network type, DHCP or static
 
-    if (document.getElementById("dhcp").value == "yes") {
+    if (document.getElementById("dhcp").checked == 1) {
 
                if (dhcp = "no") {
                        // disable network-static service and endable network service