bkruse: branch asterisknow r1574 - in /branches/asterisknow: ./ config/
SVN commits to the Asterisk-GUI project
asterisk-gui-commits at lists.digium.com
Mon Sep 10 16:16:49 CDT 2007
Author: bkruse
Date: Mon Sep 10 16:16:49 2007
New Revision: 1574
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=1574
Log:
Merged revisions 1572 via svnmerge from
https://origsvn.digium.com/svn/asterisk-gui/branches/1.4
........
r1572 | bkruse | 2007-09-10 16:14:53 -0500 (Mon, 10 Sep 2007) | 1 line
more changes for digital...more features
........
Modified:
branches/asterisknow/ (props changed)
branches/asterisknow/config/cfgbasic.html
branches/asterisknow/config/digital.html
Propchange: branches/asterisknow/
------------------------------------------------------------------------------
--- svnmerge-integrated (original)
+++ svnmerge-integrated Mon Sep 10 16:16:49 2007
@@ -1,1 +1,1 @@
-/branches/1.4:1-1296,1316,1326,1332,1336-1338,1342,1346,1356,1362,1381,1384,1395,1399,1402,1413,1416,1426,1432,1435,1439,1442,1455,1465,1475,1478,1481,1488,1491,1494,1497,1500,1504,1507,1510,1513,1516,1520,1530,1534,1540,1544,1548,1552,1556,1564,1568
+/branches/1.4:1-1296,1316,1326,1332,1336-1338,1342,1346,1356,1362,1381,1384,1395,1399,1402,1413,1416,1426,1432,1435,1439,1442,1455,1465,1475,1478,1481,1488,1491,1494,1497,1500,1504,1507,1510,1513,1516,1520,1530,1534,1540,1544,1548,1552,1556,1564,1568,1572
Modified: branches/asterisknow/config/cfgbasic.html
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/cfgbasic.html?view=diff&rev=1574&r1=1573&r2=1574
==============================================================================
--- branches/asterisknow/config/cfgbasic.html (original)
+++ branches/asterisknow/config/cfgbasic.html Mon Sep 10 16:16:49 2007
@@ -34,6 +34,7 @@
eventeater.pingstatus = false;
var keepPinging;
var has_digital = 0;
+var needs_reloadzap = 0;
var int_handle;
var MainScreenPanels = [];
var newMSpanel = function(s){
Modified: branches/asterisknow/config/digital.html
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/digital.html?view=diff&rev=1574&r1=1573&r2=1574
==============================================================================
--- branches/asterisknow/config/digital.html (original)
+++ branches/asterisknow/config/digital.html Mon Sep 10 16:16:49 2007
@@ -137,8 +137,8 @@
var fieldnames_zap_opts = [ 'loadzone', 'defaultzone'];
/* Our select boxes for framing/coding and line build out */
-var framing_and_coding = [ "esf,b8zs", "d4,ami", "cas,ami", "ccs,hdb3", "ccs,crc4,hdb3"];
-var framing_and_coding_nice = [ "ESF/B8ZS", "D4/AMI", "CAS/AMI", "CCS/HDB3", "CCS/CRC4/HDB3"];
+var framing_and_coding = [ "esf,b8zs", "d4,ami", "cas,ami", "ccs,hdb3", "ccs,crc4,hdb3", "fxoks", "fxols", "fxsks", "fxsls"];
+var framing_and_coding_nice = [ "ESF/B8ZS", "D4/AMI", "CAS/AMI", "CCS/HDB3", "CCS/CRC4/HDB3", "FXOKS", "FXOLS", "FXSKS", "FXSLS"];
/* _______________________________________________________ */
@@ -274,16 +274,54 @@
var y=parseInt(x);
if (isNaN(y)) return false;
return x==y && x.toString()==y.toString();
+}
+
+function build_span_config(span) {
+ return "yay";
}
function run_zt_and_restart() {
/* this function will run ztcfg and reload the page. */
+ parent.needs_reloadzap = 1;
gui_feedback("Save Completed.", 'blue');
}
function get_params_and_ztcfg() {
/* this function will get all the values out of all the fields, build a zaptel.conf file, then write it and run ztcfg */
+ parent.needs_reloadzap = 1;
+ var dchans = 0;
+ var bchans = 1;
+ var ZAPTEL = new Object;
+ for(var i=1; i < (total_spans + 1); i++ ){
+ var arr = (i - 1);
+ ZAPTEL[i] = new Object;
+ ZAPTEL[i].en = new Array;
+ for(var x=0; x < fieldnames_clickable.length; x++) {
+ var tmp_id = i+'-'+fieldnames_clickable[x]+'-sel';
+ var tmp_b = _$(tmp_id);
+ ZAPTEL[i].en[fieldnames_clickable[x]] = tmp_b.options[tmp_b.selectedIndex].value;
+ }
+ /* switch(val) {
+ case "fxoks":
+ case "fxols":
+ case "fxsks":
+ case "fxsls":
+ break;
+ case "esf,b8zs":
+ case "d4,ami":
+ alert("esf/b8zs or something");
+ break;
+ case "cas,ami":
+ case "ccs,hdb3":
+ case "css,crc4,hdb3":
+ break;
+ }
+ */
+
+ }
+ alert(ZAPTEL);
+
gui_alert("This is a place holder, if you see this its probably because you need to run ztcfg, and running it is not in this page yet.");
}
@@ -338,7 +376,7 @@
/* if alarms is red, make cell red, else make cell green/yellow etc. */
SPANS[l].en = new Array;
for(var i=0; i < fieldnames.length; i++) {
- var td = document.createElement("td");
+ var td = document.createElement("td");
/* save our information for global use... */
SPANS[l].en[fieldnames[i]] = n[l][fieldnames[i]];
/* dumb hack because we cannot use multidimentional arrays */
More information about the asterisk-gui-commits
mailing list