pari: branch 2.0 r4361 - /branches/2.0/config/js/pbx.js

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Tue Dec 16 13:11:18 CST 2008


Author: pari
Date: Tue Dec 16 13:11:17 2008
New Revision: 4361

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


ABE-1443 : Hide Setup Hardware and mISDN Config tabs when no digital or mISDN cards are in the system



Modified:
    branches/2.0/config/js/pbx.js

Modified: branches/2.0/config/js/pbx.js
URL: http://svn.digium.com/view/asterisk-gui/branches/2.0/config/js/pbx.js?view=diff&rev=4361&r1=4360&r2=4361
==============================================================================
--- branches/2.0/config/js/pbx.js (original)
+++ branches/2.0/config/js/pbx.js Tue Dec 16 13:11:17 2008
@@ -525,6 +525,12 @@
 		sessionData.FXS_PORTS_DETECTED = [];
 		var y;
 		var c = config2json({filename:'ztscan.conf', usf:0});
+		var tmp_dahdi_contexts = c.getOwnProperties();
+		if( !tmp_dahdi_contexts.length ){ // no analog or digital hardware found, hide the hardware configuration & misdn panels
+			miscFunctions.hide_panel('digital.html', 0);
+			miscFunctions.hide_panel('misdn.html', 0);
+		}
+
 		for( var d in c ){ if (c.hasOwnProperty(d) ) {
 			c[d].each( function( item ) {
 				if( item.beginsWith('port=') && item.contains('FXO') && !item.contains('FAILED') ){ // we are looking for item if it is in the format 'port=4,FXO'




More information about the asterisk-gui-commits mailing list