pari: branch asterisknow r2137 - /branches/asterisknow/config/misdn.html

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Sat Jan 12 15:14:47 CST 2008


Author: pari
Date: Sat Jan 12 15:14:47 2008
New Revision: 2137

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=2137
Log:
Display a more appropriate message when there are no misdn trunks created

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=2137&r1=2136&r2=2137
==============================================================================
--- branches/asterisknow/config/misdn.html (original)
+++ branches/asterisknow/config/misdn.html Sat Jan 12 15:14:47 2008
@@ -389,7 +389,13 @@
 	ASTGUI.domActions.clear_table(tbl);
 	add_fRow();
 	for( var k in mISDNTRUNKS ){ if( mISDNTRUNKS.hasOwnProperty(k) ){ addrow_totable(k); }}
-
+	if(tbl.rows.length == 1){
+		tbl.style.display = 'none';
+		_$('div_noTrunks').innerHTML = '<BR><BR>You donot have any mISDN trunks defined';
+	}else{
+		tbl.style.display = '';
+		_$('div_noTrunks').innerHTML = '<BR>List of mISDN Service providers (trunks)';
+	}
 }
 
 function load_mISDNtrunks(){
@@ -544,7 +550,7 @@
 </div>
 
 <div style="overflow:auto;left:40" id="div_misdnTrunkstable">
-	<h2 align="center"><div> List of mISDN Service providers (trunks)</div></h2>
+	<h2 align="center"><div id='div_noTrunks'>List of mISDN Service providers (trunks)</div></h2>
 	<table class="taglist" id="misdntrunkstable" cellpadding=5 cellspacing=1 border=0 align=center></table>
 	<center>
 		<input type="button" value="Add" onclick="new_misdntrunk();">
@@ -608,10 +614,10 @@
 	</TR>
 	<TR>	<TD align="right">Port Options (Optional):</TD>
 		<TD>	<select id="editport_option">
-				<option value="master_clock">master_clock</option>
-				<option value="ais,nocrc4">ais,nocrc4</option>
-				<option value="optical,los,ais,slip">optical,los,ais,slip</option>
-				<option value=''>None</option>
+				<option value="master_clock">Master Clock</option>
+				<option value="ais,nocrc4">ais, nocrc4</option>
+				<option value="optical,los,ais,slip">optical, los, ais, slip</option>
+				<option value=''> None </option>
 			</select>
 		</TD>
 	</TR>




More information about the asterisk-gui-commits mailing list