pari: branch aadk r741 - in /branches/aadk/config: backup.html home.html

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Tue Apr 24 12:09:30 MST 2007


Author: pari
Date: Tue Apr 24 14:09:29 2007
New Revision: 741

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=741
Log:
changes in backup.html to reflect the new 'activate changes' method from home.html

Modified:
    branches/aadk/config/backup.html
    branches/aadk/config/home.html

Modified: branches/aadk/config/backup.html
URL: http://svn.digium.com/view/asterisk-gui/branches/aadk/config/backup.html?view=diff&rev=741&r1=740&r2=741
==============================================================================
--- branches/aadk/config/backup.html (original)
+++ branches/aadk/config/backup.html Tue Apr 24 14:09:29 2007
@@ -123,15 +123,15 @@
 
 
 function restore_bkp(filename){
-	parent.astmanEngine.run_tool("rm /etc/asterick/* -rf ", callback=function(){ restore_bkp_step2(filename);} );
+	//parent.astmanEngine.run_tool("rm /etc/asterick/* -rf ", callback=function(){ restore_bkp_step2(filename);} );
+	restore_bkp_step2(filename);
 }
 
 
 function restore_bkp_step2(filename){
 	parent.astmanEngine.run_tool("tar -xf " + asterisk_ConfigBkpPath + filename +" -C /" , callback=function(){
-		gui_alert("Configuration restored !!");
-		// give two seconds for extracting tar file before restarting asterisk 
-		window.setTimeout( function(){ parent.reloadConfig();}, 1500);
+		gui_feedback( "Configuration restored !!" + "<BR> Applying Changes... " , 'green');
+		window.location.href = "home.html?reload=yes";
 	});
 }
 

Modified: branches/aadk/config/home.html
URL: http://svn.digium.com/view/asterisk-gui/branches/aadk/config/home.html?view=diff&rev=741&r1=740&r2=741
==============================================================================
--- branches/aadk/config/home.html (original)
+++ branches/aadk/config/home.html Tue Apr 24 14:09:29 2007
@@ -273,9 +273,6 @@
 	_$('reloadconfig').disabled = r;
 	_$('saveconfig').disabled = r;
 }
-
-
-
 
 
 function gui_sysinfo_mount(m){
@@ -313,7 +310,6 @@
 	});
 }
 
-
 </script>
 <body id="foo" onload="localinit()" topmargin=0  bgcolor="EFEFEF">
 <div class="mainscreenTitleBar">



More information about the asterisk-gui-commits mailing list