pari: branch aadk r666 - /branches/aadk/config/backup.html

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Mon Apr 16 07:15:00 MST 2007


Author: pari
Date: Mon Apr 16 09:15:00 2007
New Revision: 666

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=666
Log:
calling gui_sysinfo seperately to check the mount status

Modified:
    branches/aadk/config/backup.html

Modified: branches/aadk/config/backup.html
URL: http://svn.digium.com/view/asterisk-gui/branches/aadk/config/backup.html?view=diff&rev=666&r1=665&r2=666
==============================================================================
--- branches/aadk/config/backup.html (original)
+++ branches/aadk/config/backup.html Mon Apr 16 09:15:00 2007
@@ -29,11 +29,28 @@
 function localajaxinit() {
 	setWindowTitle("Backup");
 	showdiv_statusmessage();
-
+	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;
+				aaaa();
+			},
+			onFailure: function(t) { alert("Config Error: " + t.status + ": " + t.statusText); }
+		};
+		opt.parameters="";
+		var tmp = new Ajax.Request(asterisk_guiSysInfo_output, opt);
+	});
+}
+
+function aaaa(){
 	parent.astmanEngine.run_tool(asterisk_guiListFiles + " " + asterisk_ConfigBkpPath, 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();
 				}else{
@@ -48,7 +65,6 @@
 		return true;
 	});
 }
-
 
 function showlist_of_files(){
 	var k = _$('list_files').innerHTML ;



More information about the asterisk-gui-commits mailing list