pari: branch pari/dahdi_support r4445 - in /team/pari/dahdi_support/config: ....

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Fri Jan 16 15:42:46 CST 2009


Author: pari
Date: Fri Jan 16 15:42:46 2009
New Revision: 4445

URL: http://svn.digium.com/svn-view/asterisk-gui?view=rev&rev=4445
Log:

 Show switchtype only for PRI,
 hide the option for BRI spans.



Modified:
    team/pari/dahdi_support/config/hardware_dahdi.html
    team/pari/dahdi_support/config/js/hardware_dahdi.js

Modified: team/pari/dahdi_support/config/hardware_dahdi.html
URL: http://svn.digium.com/svn-view/asterisk-gui/team/pari/dahdi_support/config/hardware_dahdi.html?view=diff&rev=4445&r1=4444&r2=4445
==============================================================================
--- team/pari/dahdi_support/config/hardware_dahdi.html (original)
+++ team/pari/dahdi_support/config/hardware_dahdi.html Fri Jan 16 15:42:46 2009
@@ -224,7 +224,8 @@
 			</select>
 		</TD>
 	</TR>
-	<TR id="signalling_container">	<TD align="right">Switch Type</TD>
+	<TR id="switchtype_container">
+		<TD align="right"> Switch Type </TD>
 		<TD>	<select id="editspan_switchtype">
 				<option value="national">National ISDN 2 (default)</option>
 				<option value="dms100">Nortel DMS100</option>

Modified: team/pari/dahdi_support/config/js/hardware_dahdi.js
URL: http://svn.digium.com/svn-view/asterisk-gui/team/pari/dahdi_support/config/js/hardware_dahdi.js?view=diff&rev=4445&r1=4444&r2=4445
==============================================================================
--- team/pari/dahdi_support/config/js/hardware_dahdi.js (original)
+++ team/pari/dahdi_support/config/js/hardware_dahdi.js Fri Jan 16 15:42:46 2009
@@ -210,6 +210,7 @@
 	}();
 
 	if ( Number(SPANS[l]['totchans']) == 3 ){
+		$('#switchtype_container').hide();
 		ASTGUI.selectbox.append(_$('editspan_fac'),'CCS/AMI', 'CCS/AMI');
 		//_$('editspan_signalling')
 		ASTGUI.selectbox.clear(_$('editspan_signalling'));
@@ -217,6 +218,7 @@
 		ASTGUI.selectbox.append(_$('editspan_signalling'),'bri_net', 'bri_net');
 		ASTGUI.selectbox.append(_$('editspan_signalling'),'bri_cpe_ptmp', 'bri_cpe_ptmp');
 	}else{
+		$('#switchtype_container').show();
 		ASTGUI.selectbox.clear(_$('editspan_signalling'));
 		ASTGUI.selectbox.append(_$('editspan_signalling'),'PRI - Net', 'pri_net');
 		ASTGUI.selectbox.append(_$('editspan_signalling'),'PRI - CPE', 'pri_cpe');




More information about the asterisk-gui-commits mailing list