pari: branch asterisknow r2004 - /branches/asterisknow/config/digital.html
SVN commits to the Asterisk-GUI project
asterisk-gui-commits at lists.digium.com
Wed Dec 19 14:19:51 CST 2007
Author: pari
Date: Wed Dec 19 14:19:50 2007
New Revision: 2004
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=2004
Log:
display a 'No Analog Hardware detected' if (count(FXS)==0 && count(FXO)==0 )
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=2004&r1=2003&r2=2004
==============================================================================
--- branches/asterisknow/config/digital.html (original)
+++ branches/asterisknow/config/digital.html Wed Dec 19 14:19:50 2007
@@ -312,9 +312,14 @@
_$('message_text').innerHTML = "Detecting Digital Cards ...";
_$('status_message').style.display="block";
setTimeout("_$('status_message').style.display='none';", 1000);
- _$('ListFXSPorts').innerHTML = parent.FXS_PORTS_DETECTED.join(',');
- _$('ListFXOPorts').innerHTML = parent.FXO_PORTS_DETECTED.join(',');
-
+
+ if(!parent.FXS_PORTS_DETECTED.length && !parent.FXS_PORTS_DETECTED.length ){
+ _$('FXSFXO_ports_td').innerHTML = "NO Analog Hardware detected !! <BR><BR>";
+ }else{
+ var s1 = (parent.FXS_PORTS_DETECTED.length)?parent.FXS_PORTS_DETECTED.join(',') : 'none';
+ var s2 = (parent.FXS_PORTS_DETECTED.length)?parent.FXO_PORTS_DETECTED.join(',') : 'none';
+ _$('FXSFXO_ports_td').innerHTML = 'FXS Ports : ' + s1 + '<BR>' + 'FXO Ports : ' + s2 + '<BR>' ;
+ }
var edit_DefinedChans_changed = function(){
var b = CURRENT_SPAN ;
@@ -787,9 +792,7 @@
<div style="overflow:auto;left:40">
<table cellpadding=5 cellspacing=1 align=center border=0>
<tr>
- <td align=left>
- FXS Ports : <span id="ListFXSPorts"></span><BR>
- FXO Ports : <span id="ListFXOPorts"></span><BR>
+ <td align=left id="FXSFXO_ports_td">
</td>
</tr>
<tr>
More information about the asterisk-gui-commits
mailing list