pari: branch aadk r664 - /branches/aadk/config/record.html
asterisk-gui-commits at lists.digium.com
asterisk-gui-commits at lists.digium.com
Mon Apr 16 06:55:47 MST 2007
Author: pari
Date: Mon Apr 16 08:55:46 2007
New Revision: 664
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=664
Log:
calling gui_sysinfo seperately to check the mount status
Modified:
branches/aadk/config/record.html
Modified: branches/aadk/config/record.html
URL: http://svn.digium.com/view/asterisk-gui/branches/aadk/config/record.html?view=diff&rev=664&r1=663&r2=664
==============================================================================
--- branches/aadk/config/record.html (original)
+++ branches/aadk/config/record.html Mon Apr 16 08:55:46 2007
@@ -33,8 +33,24 @@
showdiv_statusmessage();
setWindowTitle("Record a Menu");
_$('message_text').innerHTML = "Please wait while the system <BR> Calls the specified Extension ... ";
- parent.astmanEngine.config2list("users.conf", _$('newvmenu_ext'), new Array, callbacks);
-}
+ gui_sysinfo_mount();
+}
+
+
+function gui_sysinfo_mount(){
+ parent.astmanEngine.run_tool(asterisk_guiSysInfo, callback = function() {
+ var opt = { method: 'get', asynchronous: true,
+ onComplete: function(originalRequest){
+ _$('sysinfohtml').innerHTML = originalRequest.responseText;
+ parent.astmanEngine.config2list("users.conf", _$('newvmenu_ext'), new Array, callbacks);
+ },
+ onFailure: function(t) { alert("Config Error: " + t.status + ": " + t.statusText); }
+ };
+ opt.parameters="";
+ var tmp = new Ajax.Request(asterisk_guiSysInfo_output, opt);
+ });
+}
+
function showlist_of_files(){
var k = _$('list_files').innerHTML ;
@@ -60,7 +76,6 @@
newCell0.innerHTML = "<BR><I> No Recorded menus found !!</I> <BR><BR>" +
"Please click on 'Record a new Voice Menu' button to record one.<BR><BR>" ;
}
- parent.loadscreen(this);
}
function clear_table(){
@@ -117,7 +132,7 @@
parent.astmanEngine.run_tool(asterisk_guiListFiles + " " + asterisk_menusRecord_path, callback = function() {
var opt = { method: 'get', asynchronous: true,
onComplete: function(originalRequest){
- _$('sysinfohtml').innerHTML = originalRequest.responseText;
+ _$('sysinfohtml').innerHTML += originalRequest.responseText;
if( $('cf_status').innerHTML == "1"){
showlist_of_files();
parent.loadscreen(this);
More information about the asterisk-gui-commits
mailing list