From f79e1d3f8270b6f5501217dbdfc3829921a36345 Mon Sep 17 00:00:00 2001 From: horse69 Date: Thu, 10 May 2012 04:34:41 +0000 Subject: [PATCH] git-svn-id: https://svn.code.sf.net/p/freetel/code@411 01035d8c-6547-0410-b346-abe4f91aad63 --- mini-asterisk-gui2/admin.html | 6 +++--- mini-asterisk-gui2/admin.js | 10 +++++----- mini-asterisk-gui2/diagnostics.html | 6 +++--- mini-asterisk-gui2/diagnostics.js | 10 +++++----- mini-asterisk-gui2/ipphones.html | 6 +++--- mini-asterisk-gui2/ipphones.js | 10 +++++----- mini-asterisk-gui2/logout.html | 6 +++--- mini-asterisk-gui2/logout.js | 10 +++++----- mini-asterisk-gui2/network.js | 5 ++++- mini-asterisk-gui2/voiplines.html | 6 +++--- mini-asterisk-gui2/voiplines.js | 10 +++++----- 11 files changed, 44 insertions(+), 41 deletions(-) diff --git a/mini-asterisk-gui2/admin.html b/mini-asterisk-gui2/admin.html index d111e871..84872598 100644 --- a/mini-asterisk-gui2/admin.html +++ b/mini-asterisk-gui2/admin.html @@ -2,14 +2,14 @@ -About +Admin - + @@ -21,7 +21,7 @@ - +
diff --git a/mini-asterisk-gui2/admin.js b/mini-asterisk-gui2/admin.js index bdac0042..3d2524fc 100644 --- a/mini-asterisk-gui2/admin.js +++ b/mini-asterisk-gui2/admin.js @@ -1,9 +1,9 @@ /* - about.js + admin.js Ian Roberts - May 7 2012 + May 10 2012 - About screen for Mini Asterisk GUI2. + Admin screen for Mini Asterisk GUI2. */ var update_time = 10; @@ -28,7 +28,7 @@ function initialisePage() { // print out info - html += '

About

'; + html += '

Admin

'; html += 'Mini Asterisk GUI2 Revision XXX'; html += 'Brought to you by the Free Telephony Project'; // this image will only come up if internet connection is present @@ -37,7 +37,7 @@ function initialisePage() { html += ''; - document.getElementById("about").innerHTML += html; + document.getElementById("admin").innerHTML += html; } diff --git a/mini-asterisk-gui2/diagnostics.html b/mini-asterisk-gui2/diagnostics.html index d111e871..f091415c 100644 --- a/mini-asterisk-gui2/diagnostics.html +++ b/mini-asterisk-gui2/diagnostics.html @@ -2,14 +2,14 @@ -About +Diagnostics - + @@ -21,7 +21,7 @@ - +
diff --git a/mini-asterisk-gui2/diagnostics.js b/mini-asterisk-gui2/diagnostics.js index bdac0042..a2f321fe 100644 --- a/mini-asterisk-gui2/diagnostics.js +++ b/mini-asterisk-gui2/diagnostics.js @@ -1,9 +1,9 @@ /* - about.js + diagnostics.js Ian Roberts - May 7 2012 + May 10 2012 - About screen for Mini Asterisk GUI2. + diagnostics screen for Mini Asterisk GUI2. */ var update_time = 10; @@ -28,7 +28,7 @@ function initialisePage() { // print out info - html += '

About

'; + html += '

Diagnostics

'; html += 'Mini Asterisk GUI2 Revision XXX'; html += 'Brought to you by the Free Telephony Project'; // this image will only come up if internet connection is present @@ -37,7 +37,7 @@ function initialisePage() { html += ''; - document.getElementById("about").innerHTML += html; + document.getElementById("diagnostics").innerHTML += html; } diff --git a/mini-asterisk-gui2/ipphones.html b/mini-asterisk-gui2/ipphones.html index d111e871..5a53f878 100644 --- a/mini-asterisk-gui2/ipphones.html +++ b/mini-asterisk-gui2/ipphones.html @@ -2,14 +2,14 @@ -About +ipPhones - + @@ -21,7 +21,7 @@ - +
diff --git a/mini-asterisk-gui2/ipphones.js b/mini-asterisk-gui2/ipphones.js index bdac0042..b2bdbdb9 100644 --- a/mini-asterisk-gui2/ipphones.js +++ b/mini-asterisk-gui2/ipphones.js @@ -1,9 +1,9 @@ /* - about.js + ipphones.js Ian Roberts - May 7 2012 + May 10 2012 - About screen for Mini Asterisk GUI2. + IP Phones screen for Mini Asterisk GUI2. */ var update_time = 10; @@ -28,7 +28,7 @@ function initialisePage() { // print out info - html += '

About

'; + html += '

IP Phones

'; html += 'Mini Asterisk GUI2 Revision XXX'; html += 'Brought to you by the Free Telephony Project'; // this image will only come up if internet connection is present @@ -37,7 +37,7 @@ function initialisePage() { html += ''; - document.getElementById("about").innerHTML += html; + document.getElementById("ipphones").innerHTML += html; } diff --git a/mini-asterisk-gui2/logout.html b/mini-asterisk-gui2/logout.html index d111e871..87fe8def 100644 --- a/mini-asterisk-gui2/logout.html +++ b/mini-asterisk-gui2/logout.html @@ -2,14 +2,14 @@ -About +Logout - + @@ -21,7 +21,7 @@ - +
diff --git a/mini-asterisk-gui2/logout.js b/mini-asterisk-gui2/logout.js index bdac0042..5ae45213 100644 --- a/mini-asterisk-gui2/logout.js +++ b/mini-asterisk-gui2/logout.js @@ -1,9 +1,9 @@ /* - about.js + logout.js Ian Roberts - May 7 2012 + May 10 2012 - About screen for Mini Asterisk GUI2. + Logout screen for Mini Asterisk GUI2. */ var update_time = 10; @@ -28,7 +28,7 @@ function initialisePage() { // print out info - html += '

About

'; + html += '

Logout

'; html += 'Mini Asterisk GUI2 Revision XXX'; html += 'Brought to you by the Free Telephony Project'; // this image will only come up if internet connection is present @@ -37,7 +37,7 @@ function initialisePage() { html += ''; - document.getElementById("about").innerHTML += html; + document.getElementById("logout").innerHTML += html; } diff --git a/mini-asterisk-gui2/network.js b/mini-asterisk-gui2/network.js index bcb683cd..8bd4993a 100644 --- a/mini-asterisk-gui2/network.js +++ b/mini-asterisk-gui2/network.js @@ -25,6 +25,7 @@ function initialise() { // determine if DHCP or static downloadUrl("/cgi-bin/getdhcp.cgi", processDhcp); +// initialisePage(); } @@ -62,7 +63,9 @@ function processDhcp(doc,status) { if (dhcp == "no") { downloadUrl("/cgi-bin/getconf.cgi?file=../init.d/network-static", processStatic); - } + } else { + initialistPage(); + } } diff --git a/mini-asterisk-gui2/voiplines.html b/mini-asterisk-gui2/voiplines.html index d111e871..dbccd31f 100644 --- a/mini-asterisk-gui2/voiplines.html +++ b/mini-asterisk-gui2/voiplines.html @@ -2,14 +2,14 @@ -About +voiplines - + @@ -21,7 +21,7 @@ - +
diff --git a/mini-asterisk-gui2/voiplines.js b/mini-asterisk-gui2/voiplines.js index bdac0042..63e8ef22 100644 --- a/mini-asterisk-gui2/voiplines.js +++ b/mini-asterisk-gui2/voiplines.js @@ -1,9 +1,9 @@ /* - about.js + voiplines.js Ian Roberts - May 7 2012 + May 10 2012 - About screen for Mini Asterisk GUI2. + voiplines screen for Mini Asterisk GUI2. */ var update_time = 10; @@ -28,7 +28,7 @@ function initialisePage() { // print out info - html += '

About

'; + html += '

Voip Lines

'; html += 'Mini Asterisk GUI2 Revision XXX'; html += 'Brought to you by the Free Telephony Project'; // this image will only come up if internet connection is present @@ -37,7 +37,7 @@ function initialisePage() { html += ''; - document.getElementById("about").innerHTML += html; + document.getElementById("voiplines").innerHTML += html; } -- 2.25.1