bkruse: trunk r703 - /trunk/config/menus.html

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Wed Apr 18 13:51:19 MST 2007


Author: bkruse
Date: Wed Apr 18 15:51:18 2007
New Revision: 703

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=703
Log:
Replace .ulaw .gsm .whatever with nothing so its just the sound file

Modified:
    trunk/config/menus.html

Modified: trunk/config/menus.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/menus.html?view=diff&rev=703&r1=702&r2=703
==============================================================================
--- trunk/config/menus.html (original)
+++ trunk/config/menus.html Wed Apr 18 15:51:18 2007
@@ -991,7 +991,7 @@
 				sndfiles[i] = sndfiles[i].replace(/^\s*|\s*$/g,'') ;
 				if( sndfiles[i] == "" ){ continue; }
 				file_name = sndfiles[i].stripTags() ;
-				file_name = file_name.substr(0,(file_name.length - 4) ) ;
+				file_name = file_name.replace(/\..*/,""); /* Replace .ulaw .gsm .whatever with nothing so its just the sound file */
 				New_OPTION = document.createElement('option');
 				New_OPTION.text =  file_name  ;
 				New_OPTION.value = file_name ;



More information about the asterisk-gui-commits mailing list