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

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


Author: bkruse
Date: Thu Oct 25 13:38:02 2007
New Revision: 1739

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=1739
Log:
No seriously, im owning this b410p stuff.

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=1739&r1=1738&r2=1739
==============================================================================
--- branches/asterisknow/config/misdn.html (original)
+++ branches/asterisknow/config/misdn.html Thu Oct 25 13:38:02 2007
@@ -156,7 +156,9 @@
 		newCell0.style.width = 5;
 
 		var newCell1 = newRow.insertCell(l); l++
-		newCell1.innerHTML =  (SPANS[span]['portset']) ? SPANS[span]['portset'] : _$('editspan_portset')[_$('editspan_portset').selectedIndex].innerHTML; //SPANS[span]['portset'];
+		ASTGUI.selectbox.selectOption( _$('editspan_portset') , SPANS[l]['portset'] );
+		newCell1.innerHTML =  _$('editspan_portset')[_$('editspan_portset').selectedIndex].innerHTML;
+		_$('editspan_portset').selectedIndex = 0;	
 		newCell1.align = "center";
 	
 		var newCell2 = newRow.insertCell(l); l++
@@ -264,7 +266,7 @@
 							CARDS++;
 							var ns = (span + 3);
 							while(span <= ns) {
-								SPANS[span] = {};
+								if(!SPANS[span]) { SPANS[span] = {}; }
 								SPANS[span]['card'] = records[mn];
 								span++;
 							}
@@ -301,7 +303,6 @@
 							var k = n[l][parse_fields[x]].split(",")
 							for(var i in k){ if(k.hasOwnProperty(i)){
 								if(!SPANS[k[i]]) { SPANS[k[i]] = {} }
-								alert("setting span"+k[i]+" to "+parse_fields[x]);
 								SPANS[k[i]]['portset'] = parse_fields[x];
 							}}
 						}




More information about the asterisk-gui-commits mailing list