[prev in list] [next in list] [prev in thread] [next in thread] 

List:       asterisk-gui-commits
Subject:    pari: branch asterisknow r2137 -
From:       SVN commits to the Asterisk-GUI project
Date:       2008-01-12 21:14:47
Message-ID: 20080112211448.28787A9DF61 () lists ! digium ! internal
[Download RAW message or body]

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>


_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-gui-commits mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-gui-commits


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic