bkruse: branch asterisknow r1716 - /branches/asterisknow/config/misdn.html

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Mon Oct 22 18:04:49 CDT 2007


Author: bkruse
Date: Mon Oct 22 18:04:49 2007
New Revision: 1716

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=1716
Log:
more crap

Modified:
    branches/asterisknow/config/misdn.html

Modified: branches/asterisknow/config/misdn.html
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/misdn.html?view=diff&rev=1716&r1=1715&r2=1716
==============================================================================
--- branches/asterisknow/config/misdn.html (original)
+++ branches/asterisknow/config/misdn.html Mon Oct 22 18:04:49 2007
@@ -136,7 +136,7 @@
 		newCell1.innerHTML = "ALARMS";
 
 		var newCell2 = newRow.insertCell(2);
-		newCell2.innerHTML =  "Framing/Coding";
+		newCell2.innerHTML =  "Port Settings";
 
 		var newCell3 = newRow.insertCell(3);
 		newCell3.innerHTML = "channels<BR>Used/Total" ;
@@ -168,7 +168,7 @@
 		newCell1.align = "center";
 
 		var newCell2 = newRow.insertCell(2);
-		newCell2.innerHTML =  SPANS[span]['portset'];
+		newCell2.innerHTML =  (SPANS[span]['portset']) ? SPANS[span]['portset'] : _$('editspan_portset')[_$('editspan_portset').selectedIndex].innerHTML; //SPANS[span]['portset'];
 
 		var newCell3 = newRow.insertCell(3);
 		newCell3.innerHTML = String(SPANS[span]['usedchans'])+"/"+String(SPANS[span]['totchans'])+" ("+SPANS[k]['spantype']+")";
@@ -278,23 +278,22 @@
 					records = c.responseText.split("\n");
 					for(var mn = 0; mn < records.length; mn++) {
 						CARDS = 0;
-						console.log("records["+mn+"] = "+records[mn]);
 						if(records[mn].beginsWith('card=')) { 
 							/* We found a 4 port mISDN card */
 							CARDS++;
 							for(var z = 1; z <= 4; z++) {
 								SPANS[z] = {};
-								SPANS['card'] = records[mn];
+								SPANS[z]['card'] = records[mn];
 								/* set the spans stats here, if we have any */
 							}
 						}
-						if(CARDS == 0) {
-							_$('errmsg').innerHTML = "No mISDN Cards detected (found 0 spans)!";
-							_$('errmsg').style.display = '';
-							_$('div_digitalcardstable').style.display = 'none';
-							gui_feedback("No mISDN Cards found !!");
-							return false;
-						}
+					}
+					if(CARDS == 0) {
+						_$('errmsg').innerHTML = "No mISDN Cards detected (found 0 spans)!";
+						_$('errmsg').style.display = '';
+						_$('div_digitalcardstable').style.display = 'none';
+						gui_feedback("No mISDN Cards found !!");
+						return false;
 					}
 					/* Here we would call something to setup a table for basic cards... (4 port BRI)*/
 				},
@@ -321,9 +320,7 @@
 					}
 					for(var z = 1; z <= spans.length; z++) {
 						SPANS[z] = {};
-						SPANS[z]['alarms'] = "Read from";
-						SPANS[z]['portset'] = "applymisdn.conf, or";
-						SPANS[z]['totchans'] = "set to nothing";
+						/* set spans from read files here. */
 					}
 					continue;
 				}
@@ -362,7 +359,7 @@
 
 function resetmainscreen(){ top._$('mainscreen').width= 540; }
 
-function reloadpage(){ window.location.href="digital.html"; }
+function reloadpage(){ window.location.href="misdn.html"; }
 
 function updateSpanInfo(){
 	var b = String( menu.span_value );
@@ -371,7 +368,7 @@
 	SPANS[b]['syncsrc'] = _$('editspan_syncsrc').value;
 	SPANS[b]['lbo'] = _$('editspan_lbo').value;
 	canelSpanInfo();
-	preparemenus();
+	showtable();
 	_$('save_b').disabled = false;
 	_$('cancel_b').disabled = false;
 }
@@ -442,7 +439,7 @@
 			var totalchans = 0, firstpart , secondpart, tmp, tmp2 , tmp3;
 			for( var k in SPANS ){ if( SPANS.hasOwnProperty(k) ){{
 				//secondpart = k + "," + SPANS[k]['syncsrc']  + "," + SPANS[k]['lbo'] + "," + SPANS[k]['fac'].toLowerCase().replace("/", ",");
-				uri += build_action('append', c, context, SPANS[k]['card'], k); c++;
+				uri += build_action('append', c, context, SPANS[k]['card']+",0x4", k); c++;
 				uri += build_action('append', c, context, SPANS[k]['portset'], k); c++;
 				tmp2 = (bchanstring)? ",":"";
 				SPANS[k]['zapchanstring'] = tmp3;
@@ -539,12 +536,6 @@
 	<TR>	<TD align="right">ALARMS:</TD>
 		<TD><span id="editspan_ALARMS"></span></TD>
 	</TR>
-	<TR>	<TD align="right">Framing/Coding:</TD>
-		<TD>	<select id="editspan_fac"></select> </TD>
-	</TR>
-	<TR>	<TD align="right">Channels:</TD>
-		<TD><span id="editspan_channels"></span></TD>
-	</TR>
 	<TR>	<TD align="right">Port Settings</TD>
 		<TD>	<select id="editspan_portset">
 			<option value="te_ptp">TE-Mode, PTP</option>
@@ -555,6 +546,9 @@
 			<option value="nt_ptmp">NT-Mode, PMTP</option>
 			</select>
 		</TD>
+	</TR>
+	<TR>	<TD align="right">Channels:</TD>
+		<TD><span id="editspan_channels"></span></TD>
 	</TR>
 	<TR id="signalling_container">	<TD align="right">Switch Type</TD>
 		<TD>	<select id="editspan_switchtype">




More information about the asterisk-gui-commits mailing list