bkruse: branch asterisknow r1745 - in /branches/asterisknow/config: ./ scripts/

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Thu Oct 25 14:14:26 CDT 2007


Author: bkruse
Date: Thu Oct 25 14:14:25 2007
New Revision: 1745

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=1745
Log:
Update for astman and misdn, more stuff

thing for digital to extend the box so
the buttons are not off the screen

Modified:
    branches/asterisknow/config/digital.html
    branches/asterisknow/config/misdn.html
    branches/asterisknow/config/scripts/astman.js

Modified: branches/asterisknow/config/digital.html
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/digital.html?view=diff&rev=1745&r1=1744&r2=1745
==============================================================================
--- branches/asterisknow/config/digital.html (original)
+++ branches/asterisknow/config/digital.html Thu Oct 25 14:14:25 2007
@@ -632,7 +632,7 @@
 <div id="bg_transparent" STYLE="display:none; position: absolute; left: 0; top: 0; width:100%; height:100%;  background-color:#FFFFFF; filter:alpha(opacity=50); -moz-opacity:.50;opacity:.50; border-width: 0px; z-index:4">
 </div>
 
-<div id="edit_span" STYLE="display:none; position: absolute; left: 30; top: 40; width:500; height:310;  background-color:#F4EFE5;   border-width: 1px; border-color: #7E5538; border-style: solid; z-index:5">
+<div id="edit_span" STYLE="display:none; position: absolute; left: 30; top: 40; width:500; height:340;  background-color:#F4EFE5;   border-width: 1px; border-color: #7E5538; border-style: solid; z-index:5">
 	<table width="100%" cellpadding=0 cellspacing=0  onmousedown="ASTGUI.startDrag(event , 'edit_span');">
 	<TR bgcolor="#7E5538"  style="background-image:url('images/title_gradient.gif');">
 		<TD Height="20" align="left" style="cursor: move">

Modified: branches/asterisknow/config/misdn.html
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/misdn.html?view=diff&rev=1745&r1=1744&r2=1745
==============================================================================
--- branches/asterisknow/config/misdn.html (original)
+++ branches/asterisknow/config/misdn.html Thu Oct 25 14:14:25 2007
@@ -156,7 +156,7 @@
 		newCell0.style.width = 5;
 
 		var newCell1 = newRow.insertCell(l); l++
-		ASTGUI.selectbox.selectOption( _$('editspan_portset') , SPANS[l]['portset'] );
+		ASTGUI.selectbox.selectOption( _$('editspan_portset') , SPANS[span]['portset'] );
 		newCell1.innerHTML =  _$('editspan_portset')[_$('editspan_portset').selectedIndex].innerHTML;
 		_$('editspan_portset').selectedIndex = 0;	
 		newCell1.align = "center";
@@ -302,8 +302,9 @@
 						if(n[l][parse_fields[x]]) {
 							var k = n[l][parse_fields[x]].split(",")
 							for(var i in k){ if(k.hasOwnProperty(i)){
-								if(!SPANS[k[i]]) { SPANS[k[i]] = {} }
+								if(!SPANS[k[i]]) { SPANS[k[i]] = {}; }
 								SPANS[k[i]]['portset'] = parse_fields[x];
+								console.log("setting portset crap"+SPANS[k[i]]['portset']);
 							}}
 						}
 					}
@@ -312,7 +313,7 @@
 			}}
 			loadConfigFiles.checkHardwareChanges();
 		};
-		config2json("misdn-init.conf", 1, digitalparse);
+		config2json("misdn-init.conf", 0, digitalparse);
 	},
 
 	checkHardwareChanges: function(){
@@ -355,6 +356,7 @@
 	canelSpanInfo();
 	_$('save_b').disabled = false;
 	_$('cancel_b').disabled = false;
+	showtable();
 }
 
 var applySettings = {
@@ -417,24 +419,18 @@
 	// then call a script which will generate zaptel.conf from it and asks the user to restart his machine
 		var uri = '';
 		var add_lines = function(){
-			var c = 0, bchanstring = '', dchanstring = '', context = 'general' ;
+			var c = 0, context = 'general' ;
 			uri = build_action('delcat', c, context,"", ""); c++;
 			uri += build_action('newcat', c , context, "", ""); c++;
 			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, "card", k+",0x4"); c++;
 				uri += build_action('append', c, context, SPANS[k]['portset'], k); c++;
-				tmp2 = (bchanstring)? ",":"";
-				SPANS[k]['zapchanstring'] = tmp3;
 			}}}
 
-			uri += build_action('append', c, context, 'bchan', bchanstring); c++;
-			uri += build_action('append', c, context, 'dchan', dchanstring); c++;
+			for(var i=1; i<=CARDS; i++) {uri += build_action('append', c, context, "card", i+",0x4"); c++;}
 			uri += build_action('append', c, context, 'bridging', _$('bridging').value); c++;
-			var gen = "general";
-			uri += build_action('append', c, gen, 'echocancel', _$('echocancel').value); c++;
-			uri += build_action('append', c, gen, 'echotraining', _$('echotraining').value); c++;
+			uri += build_action('append', c, context, 'echocancel', _$('echocancel').value); c++;
+			uri += build_action('append', c, context, 'echotraining', _$('echotraining').value); c++;
 		}();
 		makerequest('u', "applymisdn.conf", uri , function(t) { applySettings.updateUsersConf(); });
 	}

Modified: branches/asterisknow/config/scripts/astman.js
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/scripts/astman.js?view=diff&rev=1745&r1=1744&r2=1745
==============================================================================
--- branches/asterisknow/config/scripts/astman.js (original)
+++ branches/asterisknow/config/scripts/astman.js Thu Oct 25 14:14:25 2007
@@ -212,7 +212,7 @@
 		},
 
 		clear_table: function(h){
-			for( var i=0; i <  h.rows.length; ){ _bft.deleteRow(i); }
+			for( var i=0; i <  h.rows.length; ){ h.deleteRow(i); }
 		}
 	},
 




More information about the asterisk-gui-commits mailing list