pari: branch asterisknow r2016 - /branches/asterisknow/config/

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Wed Dec 19 16:21:07 CST 2007


Author: pari
Date: Wed Dec 19 16:21:06 2007
New Revision: 2016

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=2016
Log:
Add ability to reboot via gui

Modified:
    branches/asterisknow/config/cfgbasic.html
    branches/asterisknow/config/home.html

Modified: branches/asterisknow/config/cfgbasic.html
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/cfgbasic.html?view=diff&rev=2016&r1=2015&r2=2016
==============================================================================
--- branches/asterisknow/config/cfgbasic.html (original)
+++ branches/asterisknow/config/cfgbasic.html Wed Dec 19 16:21:06 2007
@@ -300,6 +300,11 @@
 function system_link(){
 	var newwindow_href = location.protocol + '//' + location.hostname + ':8003';
 	window.open(newwindow_href ,'mainwindow','width=1024,height=768,resizable=no, scrollbars=yes, toolbar=no, location=no,status=yes, menubar=no')
+}
+
+function reboot(){
+	if(!confirm("Reboot System ?")){ return true; }
+	parent.astmanEngine.run_tool("reboot", callback = function(){ gui_feedback("Rebooting System!!", 'green'); });
 }
 
 function reloadConfig(){

Modified: branches/asterisknow/config/home.html
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/home.html?view=diff&rev=2016&r1=2015&r2=2016
==============================================================================
--- branches/asterisknow/config/home.html (original)
+++ branches/asterisknow/config/home.html Wed Dec 19 16:21:06 2007
@@ -32,6 +32,7 @@
 	_$('username').disabled = (f)?1:0;
 	_$('secret').disabled = (f)?1:0;
 	_$('logoff').disabled = (f)?0:1;
+	_$('reboot').disabled = (f)?0:1;
 	_$('login').disabled = (f)?1:0;
 	if(!f){ try{ _$('username').focus();}catch(err){ } }
 }
@@ -118,7 +119,6 @@
 	_$('logoff').disabled = 1;
 	_$('login').disabled = 0;
 }
-
 
 function doLogin() {
 	if( _$('username').value == "" ){
@@ -257,6 +257,8 @@
 				<input type="submit" id="login" value="Login" onClick="doLogin()" class="input">
 				&nbsp;&nbsp;&nbsp;&nbsp;
 				<input type="submit" id="logoff" value="Logoff" disabled=1 onClick="doLogoff()" class="input">
+				&nbsp;&nbsp;&nbsp;&nbsp;
+				<input type="submit" id="reboot" value="Reboot" disabled=1 onClick='parent.reboot()' class="input">
 			</td>
 		</tr>
 		</table>




More information about the asterisk-gui-commits mailing list