rbrindley: branch 2.0 r4818 - in /branches/2.0/config/js: index.js mohfiles.js

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Mon Jun 1 17:23:52 CDT 2009


Author: rbrindley
Date: Mon Jun  1 17:23:49 2009
New Revision: 4818

URL: http://svn.asterisk.org/svn-view/asterisk-gui?view=rev&rev=4818
Log:

- fixed an issue where MOH page didn't show
- fixed an issue where MOH showed all files in the MOH directory instead
  of only .wav, .gsm, and .mp3 files


Modified:
    branches/2.0/config/js/index.js
    branches/2.0/config/js/mohfiles.js

Modified: branches/2.0/config/js/index.js
URL: http://svn.asterisk.org/svn-view/asterisk-gui/branches/2.0/config/js/index.js?view=diff&rev=4818&r1=4817&r2=4818
==============================================================================
--- branches/2.0/config/js/index.js (original)
+++ branches/2.0/config/js/index.js Mon Jun  1 17:23:49 2009
@@ -1045,9 +1045,6 @@
 	}
 
 	if( sessionData.PLATFORM.isABE ){ // ABE-1600
-		try{
-			miscFunctions.hide_panel('mohfiles.html', -1);
-		}catch(err){}
 	}
 
 	var loadGUI = function(){

Modified: branches/2.0/config/js/mohfiles.js
URL: http://svn.asterisk.org/svn-view/asterisk-gui/branches/2.0/config/js/mohfiles.js?view=diff&rev=4818&r1=4817&r2=4818
==============================================================================
--- branches/2.0/config/js/mohfiles.js (original)
+++ branches/2.0/config/js/mohfiles.js Mon Jun  1 17:23:49 2009
@@ -125,7 +125,7 @@
 				ASTGUI.domActions.tr_addCell( newRow , { html: 'Options' , align:'center'});
 	
 				for( var i = 0 ; i < sndfiles.length ; i++){
-					if( !sndfiles[i].beginsWith( ASTGUI.contexts.mohdirPrefix ) ){
+					if( !sndfiles[i].beginsWith( ASTGUI.contexts.mohdirPrefix ) && (sndfiles[i].endsWith('.mp3') || sndfiles[i].endsWith('.wav') || sndfiles[i].endsWith('.gsm')) ){
 						addrow_totable( sndfiles[i].stripTags(), i );
 					}
 				}




More information about the asterisk-gui-commits mailing list