quotes around cgi calls to prevent unexpected token ","
authorhorse69 <horse69@01035d8c-6547-0410-b346-abe4f91aad63>
Fri, 11 May 2012 21:48:57 +0000 (21:48 +0000)
committerhorse69 <horse69@01035d8c-6547-0410-b346-abe4f91aad63>
Fri, 11 May 2012 21:48:57 +0000 (21:48 +0000)
git-svn-id: https://svn.code.sf.net/p/freetel/code@420 01035d8c-6547-0410-b346-abe4f91aad63

mini-asterisk-gui2/network.js

index 8bd4993a44dd102895a6d76969bbc828b8c2936d..9558f083b27fd6e55b7c66b56d70bc9ba376c5b6 100644 (file)
@@ -167,18 +167,18 @@ function onClickApply() {
 
        if (dhcp = "no") {
            // disable network-state service and endable network service
-           downloadUrl(/cgi-bin/setservice.cgi?action=enabledhcp,null);
+           downloadUrl("/cgi-bin/setservice.cgi?action=enabledhcp",null);
        }
        else {
            // dhcp already running, restart service
-           downloadUrl(/cgi-bin/setservice.cgi?action=restartdhcp,null);
+           downloadUrl("/cgi-bin/setservice.cgi?action=restartdhcp",null);
        }
     }
     else {
 
        if (dhcp = "yes") {
            // disable network service and enable network-static service
-           downloadUrl(/cgi-bin/setservice.cgi?action=enablestatic,null);
+           downloadUrl("/cgi-bin/setservice.cgi?action=enablestatic",null);
        }
 
        // change network-static file variables
@@ -211,11 +211,11 @@ function onClickApply() {
            var new_ = document.network.backdoor.value;
            var url = '/cgi-bin/setline.cgi?file=/etc/init.d/network-backup&this=BACKDOOR=&that="' + new_backdoor + '"';
            downloadUrl(url,null);
-           downloadUrl(/cgi-bin/setservice.cgi?action=restartbackup,null);
+           downloadUrl("/cgi-bin/setservice.cgi?action=restartbackup",null);
        }
 
        // finally restart network-static service with new parameters
 
-       downloadUrl(/cgi-bin/setservice.cgi?action=restartstatic,null);
+       downloadUrl("/cgi-bin/setservice.cgi?action=restartstatic",null);
     }
 }