bkruse: branch aadk r701 - /branches/aadk/config/menus.html

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


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

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=701
Log:
replace .ulaw .gsm or .whatever with nothing so asterisk can decide on the format.....the old way just removed the last 4 characters.....

Modified:
    branches/aadk/config/menus.html

Modified: branches/aadk/config/menus.html
URL: http://svn.digium.com/view/asterisk-gui/branches/aadk/config/menus.html?view=diff&rev=701&r1=700&r2=701
==============================================================================
--- branches/aadk/config/menus.html (original)
+++ branches/aadk/config/menus.html Wed Apr 18 15:25:51 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