pari: trunk r341 - /trunk/config/record.html
asterisk-gui-commits at lists.digium.com
asterisk-gui-commits at lists.digium.com
Wed Feb 14 18:21:57 MST 2007
Author: pari
Date: Wed Feb 14 19:21:56 2007
New Revision: 341
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=341
Log:
fix: touch gui_cusommenus.conf if it does not exist - http://bugs.digium.com/view.php?id=9072
Modified:
trunk/config/record.html
Modified: trunk/config/record.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/record.html?view=diff&rev=341&r1=340&r2=341
==============================================================================
--- trunk/config/record.html (original)
+++ trunk/config/record.html Wed Feb 14 19:21:56 2007
@@ -250,6 +250,21 @@
$(focus_fields[x]).onfocus = function(){this.className = 'input8_hilight';}
$(focus_fields[x]).onblur = function(){this.className = 'input8';}
}
+
+ var opt = { method: 'get', asynchronous: true, onComplete: check_filexists };
+ opt.parameters="action=getconfig&filename="+ custom_voicemenusfile ;
+ var tmp = new Ajax.Request("../../rawman", opt);
+}
+
+function check_filexists(originalRequest){
+ if( originalRequest.responseText.indexOf("Config file not found") != -1 ){
+ parent.astmanEngine.run_tool("/bin/touch /etc/asterisk/"+custom_voicemenusfile , function(){ load_page(); } );
+ return;
+ }
+ load_page();
+}
+
+function load_page(){
parent.astmanEngine.config2list(custom_voicemenusfile, $('recorded_files'), new Array, rfilescallbacks);
parent.astmanEngine.config2list("users.conf", $('newvmenu_ext'), new Array, callbacks);
$('message_text').innerHTML = "Please wait while the system <BR> Calls the specified Extension ... ";
More information about the asterisk-gui-commits
mailing list