git-svn-id: https://svn.code.sf.net/p/freetel/code@1100 01035d8c-6547-0410-b346-abe4f...
authorhorse69 <horse69@01035d8c-6547-0410-b346-abe4f91aad63>
Sat, 1 Dec 2012 02:26:39 +0000 (02:26 +0000)
committerhorse69 <horse69@01035d8c-6547-0410-b346-abe4f91aad63>
Sat, 1 Dec 2012 02:26:39 +0000 (02:26 +0000)
mini-asterisk-gui2/ipphones.js

index 85a3f2656169c66aa20eef79e5607e4b45f6befe..08a9fa73cfb41897bab7b511e220f8a26f7fae80 100644 (file)
@@ -39,15 +39,18 @@ function initialisePage() {
     for (j in ip_ext) {
         if (ip_ext[j] != '') {
             html += "<tr>";
-               html += "<td>" + j + "</td>" + "<td>" + "IP Phone" + "</td>";
+               html += "<td>" + j + "</td>" ;
                html += "<td>" + ip_ext[j] + "</td>";
-
             html += "<td>" + tick + "</td>";
-
-
-            html += "</td>";
-
-           }
+            html += "</tr>";
+           } 
+               else {
+            html += "<tr>";
+               html += "<td>" + j + "</td>" ;
+               html += "<td>" + "available" + "</td>";
+            html += "<td>" + cross + "</td>";
+            html += "</tr>";
+               }
     }
 
     html += '</table>';