pari: branch asterisknow r2110 - /branches/asterisknow/config/digital.html

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Tue Jan 8 17:40:00 CST 2008


Author: pari
Date: Tue Jan  8 17:39:59 2008
New Revision: 2110

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=2110
Log:
minor cosmetic changes to Hardware detection page

Modified:
    branches/asterisknow/config/digital.html

Modified: branches/asterisknow/config/digital.html
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/digital.html?view=diff&rev=2110&r1=2109&r2=2110
==============================================================================
--- branches/asterisknow/config/digital.html (original)
+++ branches/asterisknow/config/digital.html Tue Jan  8 17:39:59 2008
@@ -383,11 +383,21 @@
 	setTimeout("_$('status_message').style.display='none';", 1000);
 
 	if(!parent.FXS_PORTS_DETECTED.length && !parent.FXO_PORTS_DETECTED.length ){
-		_$('FXSFXO_ports_td').innerHTML = "NO Analog Hardware detected !! <BR><BR>";
+		_$('FXSFXO_ports_td').innerHTML = "<table class=\"taglist\" cellpadding=5 cellspacing=1 border=0 align=center><tr><td>No Analog Hardware detected !! </td></tr></table><BR><BR>";
 	}else{
-		var s1 = (parent.FXS_PORTS_DETECTED.length)?parent.FXS_PORTS_DETECTED.join(',') : 'none';
-		var s2 = (parent.FXO_PORTS_DETECTED.length)?parent.FXO_PORTS_DETECTED.join(',') : 'none';
-		_$('FXSFXO_ports_td').innerHTML = 'FXS Ports : ' + s1 + '<BR>' + 'FXO Ports : ' + s2 + '<BR>' ;
+		if(parent.FXS_PORTS_DETECTED.length){
+			var s1 = ((parent.FXS_PORTS_DETECTED.length > 1) ?'Ports ':'Port ') + parent.FXS_PORTS_DETECTED.join(' , ') ;
+		}else{ 
+			var s1 = 'none' ;
+		}
+
+		if(parent.FXO_PORTS_DETECTED.length){
+			var s2 = ((parent.FXO_PORTS_DETECTED.length > 1) ?'Ports ':'Port ') + parent.FXO_PORTS_DETECTED.join(' , ') ;
+		}else{ 
+			var s2 = 'none' ;
+		}
+
+		_$('FXSFXO_ports_td').innerHTML = '<B>FXS Ports :</B> ' + s1 + '<BR>' + '<B>FXO Ports :</B> ' + s2 + '<BR>' ;
 	}
 
 	var edit_DefinedChans_changed = function(){
@@ -911,7 +921,7 @@
 						<option value="uk">United Kingdom</option>
 						<option value="fi">Finland</option>
 						<option value="jp">Japan</option>
-						<option value="sp">Spain</option>
+						<option value="es">Spain</option>
 						<option value="hu">Hungary</option>
 						<option value="lt">Lithuania</option>
 						<option value="pl">Poland</option>
@@ -919,7 +929,7 @@
 				</td>
 			</tr>
 		</table>
-	</div>
+	</div><BR>
 	<div class="pageheading">Analog Hardware</div>
 	<div style="overflow:auto;left:40">
 		<table  cellpadding=5 cellspacing=1 align=center border=0>




More information about the asterisk-gui-commits mailing list