pari: branch aadk r565 - in /branches/aadk/config: cfgbasic.html setup/10.html

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Thu Mar 29 23:39:12 MST 2007


Author: pari
Date: Fri Mar 30 01:39:11 2007
New Revision: 565

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=565
Log:
Doing the same work over and over, hate this - same as commit 414

Modified:
    branches/aadk/config/cfgbasic.html
    branches/aadk/config/setup/10.html

Modified: branches/aadk/config/cfgbasic.html
URL: http://svn.digium.com/view/asterisk-gui/branches/aadk/config/cfgbasic.html?view=diff&rev=565&r1=564&r2=565
==============================================================================
--- branches/aadk/config/cfgbasic.html (original)
+++ branches/aadk/config/cfgbasic.html Fri Mar 30 01:39:11 2007
@@ -198,8 +198,16 @@
 astmanEngine.setURL(asterisk_rawmanPath );
 astmanEngine.setEventCallback(eventeater.eventcb);
 
-function Logoff() {
-	if(!confirm("Are you sure ?")){ return true; }
+function Logoff(){
+	//if(!confirm("Are you sure ?")){ return true; }
+	if (confirm("Save Changes before logout ?")) {
+		parent.astmanEngine.run_tool("/bin/save_config", onSuccess = function() { Logoff_2(); });
+	}else{
+		Logoff_2();
+	}
+}
+
+function Logoff_2() {
 	var opt2 = {
 		method: 'get',
 		asynchronous: true,

Modified: branches/aadk/config/setup/10.html
URL: http://svn.digium.com/view/asterisk-gui/branches/aadk/config/setup/10.html?view=diff&rev=565&r1=564&r2=565
==============================================================================
--- branches/aadk/config/setup/10.html (original)
+++ branches/aadk/config/setup/10.html Fri Mar 30 01:39:11 2007
@@ -59,6 +59,9 @@
 
 	if ( originalRequest.responseText.match("Pong") ) {
 		parent.astmanEngine.pollEvents();
+		if (confirm("Do you want to save these settings ?")) {
+			parent.astmanEngine.run_tool("/bin/save_config",onSuccess = function() { alert("Configuration Saved"); } );
+		}
 	}
 }
 



More information about the asterisk-gui-commits mailing list