git-svn-id: https://svn.code.sf.net/p/freetel/code@767 01035d8c-6547-0410-b346-abe4f9...
authorhorse69 <horse69@01035d8c-6547-0410-b346-abe4f91aad63>
Wed, 17 Oct 2012 21:52:30 +0000 (21:52 +0000)
committerhorse69 <horse69@01035d8c-6547-0410-b346-abe4f91aad63>
Wed, 17 Oct 2012 21:52:30 +0000 (21:52 +0000)
fdmdv2/extern/include/.gitignore [new file with mode: 0644]
fdmdv2/extern/lib/.gitignore [new file with mode: 0644]
mini-asterisk-gui2/phones.js

diff --git a/fdmdv2/extern/include/.gitignore b/fdmdv2/extern/include/.gitignore
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/fdmdv2/extern/lib/.gitignore b/fdmdv2/extern/lib/.gitignore
new file mode 100644 (file)
index 0000000..e69de29
index 6c722ba11434bab76e9bf6770bd73f7c2a351b17..2234c3c2e431cc9944f7b4957981a67111d88f29 100644 (file)
@@ -46,29 +46,30 @@ function initialisePage() {
     for(var i=0; i<zap.length; i++) {
         if (zap[i] == 'FXS') {
             html += "<tr>";
-           html += "<td>" + analog_ext[i] + "</td>" + "<td>" + "Analog Phone" + "</td>";
-           html += "<td>Port" + i  + "</td>";
+               html += "<td>" + analog_ext[i] + "</td>" + "<td>" + "Analog Phone" + "</td>";
+               html += "<td>Port" + i  + "</td>";
 
             html += "<td>" + '<img src="tick.png" alt="tick" />' + "</td>";
 
             // the reception checkbox code
-           html += "<td>" + '<input name="selected_in[]" type="checkbox" ' ;     
-               // Underscore used instead of forward slash to pass thru html request
+               html += "<td>" + '<input name="selected_in[]" ' ;
+                       html += 'value= "' + ext_code[i-1] + '" ';
+            html += 'type="checkbox" ' ;
 
             if (recept_num.indexOf(analog_ext[i]) != -1) {
-                   html += '" checked/>';
-               }
-           else {
-                   html += '" unchecked/>';
-           }
+                       html += '" checked/>';
+                       }
+               else {
+                       html += '" unchecked/>';
+               }
 
-           // save the reception code
-           recept_code[itemcount++]=ext_code[i-1];
+               // save the reception code
+               recept_code[itemcount++]=ext_code[i-1];
 
             html += "</td>";
        
             html += "</tr>";
-       }
+           }
     }
 
 
@@ -79,32 +80,30 @@ function initialisePage() {
     for (j in ip_ext) {
         if (ip_ext[j] != '') {
             html += "<tr>";
-           html += "<td>" + j + "</td>" + "<td>" + "IP Phone" + "</td>";
-           html += "<td>" + ip_ext[j] + "</td>";
+               html += "<td>" + j + "</td>" + "<td>" + "IP Phone" + "</td>";
+               html += "<td>" + ip_ext[j] + "</td>";
 
             html += "<td>" + '<img src="tick.png" alt="tick" />' + "</td>";
 
             // the reception checkbox code
-           html += "<td>" + '<input name="selected_in[]" type="checkbox" ' ;
-               // Underscore used instead of forward slash to pass thru html request
-
+               html += "<td>" + '<input name="selected_in[]" type="checkbox" ' ;
+                       
             if (recept_num.indexOf(j)!=-1) {
-                   html += '" checked/>';
-               }
-           else {
-                   html += '" unchecked/>';
-           }
+                       html += '" checked/>';
+                   }
+               else {
+                       html += '" unchecked/>';
+               }
 
-           // save the reception code
+               // save the reception code
            
-           recept_code[itemcount++]=ext_code[(i-1)];
-           i++;
+               recept_code[itemcount++]=ext_code[(i-1)];
+               i++;
 
             html += "</td>";
 
             html += "</tr>";
-       }
+           }
     }
 
     html += "<tr>";