pari: branch 2.0 r4100 - /branches/2.0/config/timezone.html

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Wed Nov 12 14:55:17 CST 2008


Author: pari
Date: Wed Nov 12 14:55:16 2008
New Revision: 4100

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=4100
Log:

AA50-2266 : Add a button on the AA50 version of the GUI to call the update_tz script


Modified:
    branches/2.0/config/timezone.html

Modified: branches/2.0/config/timezone.html
URL: http://svn.digium.com/view/asterisk-gui/branches/2.0/config/timezone.html?view=diff&rev=4100&r1=4099&r2=4100
==============================================================================
--- branches/2.0/config/timezone.html (original)
+++ branches/2.0/config/timezone.html Wed Nov 12 14:55:16 2008
@@ -157,6 +157,22 @@
 	});
 }
 
+
+
+
+function call_update_tz( ){
+	ASTGUI.dialog.waitWhile('Updating Timezones..');
+	
+	ASTGUI.systemCmd( "update_tz" , function(){
+		setTimeout( function(){
+			ASTGUI.dialog.hide();
+			ASTGUI.feedback({ msg:'Please reboot your appliance !', showfor:2 });
+			window.location.reload();
+		}, 20000 );
+	});
+};
+
+
 </script>
 <body bgcolor="EFEFEF">
 
@@ -165,6 +181,10 @@
 	<span style="cursor: pointer; cursor: hand;" onclick="window.location.reload();" >
 		&nbsp;<img src="images/refresh.png" title=" Refresh " border=0 >&nbsp;
 	</span>
+</div>
+
+<div class='top_buttons'>
+	<span class='guiButton' onclick='call_update_tz();' style='float:left'>Update Timezones</span>
 </div>
 
 <div class='lite_Heading'>Manage TimeZones</div>




More information about the asterisk-gui-commits mailing list