From 8b1507d6660fe73dc041e2ed1113e7d2b08b873d Mon Sep 17 00:00:00 2001 From: horse69 Date: Sun, 2 Sep 2012 22:11:52 +0000 Subject: [PATCH] git-svn-id: https://svn.code.sf.net/p/freetel/code@656 01035d8c-6547-0410-b346-abe4f91aad63 --- mini-asterisk-gui2/phones.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/mini-asterisk-gui2/phones.js b/mini-asterisk-gui2/phones.js index 390a28a3..c8404bec 100644 --- a/mini-asterisk-gui2/phones.js +++ b/mini-asterisk-gui2/phones.js @@ -75,6 +75,7 @@ function initialisePage() { // print out IP phones + // j is 6011,6012 etc for (j in ip_ext) { if (ip_ext[j] != '') { @@ -87,7 +88,7 @@ function initialisePage() { // Underscore used instead of forward slash to pass thru html request - if (recept_num.indexOf(ip_ext[j])!=-1) { + if (recept_num.indexOf(j)!=-1) { html += '" checked/>'; } else { @@ -95,7 +96,9 @@ function initialisePage() { } // save the reception code - recept_code[iancount++]=ext_code[(i-1)+(j-1)]; + + recept_code[iancount++]=ext_code[(i-1)]; + i++; html += ""; @@ -201,6 +204,6 @@ function onClickApply(e) { } - //downloadUrl("/cgi-bin/setring.cgi?"+arg,null); + downloadUrl("/cgi-bin/setring.cgi?"+arg,null); } -- 2.25.1