rbrindley: branch rbrindley/astman_revamp r4570 - /team/rbrindley/astman_reva...

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Thu Mar 5 08:29:45 CST 2009


Author: rbrindley
Date: Thu Mar  5 08:29:42 2009
New Revision: 4570

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

- transitioned all html files that had javascript to use top.log, replacing ASTGUI.Log


Modified:
    team/rbrindley/astman_revamp/config/asterisklogs.html
    team/rbrindley/astman_revamp/config/home.html
    team/rbrindley/astman_revamp/config/sysinfo.html
    team/rbrindley/astman_revamp/config/upload_abe_overlay.html
    team/rbrindley/astman_revamp/config/upload_form.html
    team/rbrindley/astman_revamp/config/welcome.html

Modified: team/rbrindley/astman_revamp/config/asterisklogs.html
URL: http://svn.digium.com/svn-view/asterisk-gui/team/rbrindley/astman_revamp/config/asterisklogs.html?view=diff&rev=4570&r1=4569&r2=4570
==============================================================================
--- team/rbrindley/astman_revamp/config/asterisklogs.html (original)
+++ team/rbrindley/astman_revamp/config/asterisklogs.html Thu Mar  5 08:29:42 2009
@@ -38,7 +38,7 @@
 	var lm = sel_date.split(' ')[1]; lm = lm.trim();
 	var tmp_cmd = "/bin/grep /var/log/asterisk/messages -e '" + lm + space + ld + " ' " ;
 	parent.ASTGUI.dialog.waitWhile(' Loading Asterisk Logs ...');
-	ASTGUI.Log.Debug(tmp_cmd);
+	top.log.debug(tmp_cmd);
 	ASTGUI.systemCmdWithOutput( tmp_cmd , function(output){
 		parent.ASTGUI.dialog.hide();
 		_$('todaylog').innerHTML = (output) ? "<PRE>" + output.escapeHTML() + "</PRE>" : "No log messages found on this Day" ;

Modified: team/rbrindley/astman_revamp/config/home.html
URL: http://svn.digium.com/svn-view/asterisk-gui/team/rbrindley/astman_revamp/config/home.html?view=diff&rev=4570&r1=4569&r2=4570
==============================================================================
--- team/rbrindley/astman_revamp/config/home.html (original)
+++ team/rbrindley/astman_revamp/config/home.html Thu Mar  5 08:29:42 2009
@@ -57,7 +57,7 @@
 	var f = makeSyncRequest({ action :'login', username: DOM_username.value, secret: DOM_secret.value });
 	f = f.toLowerCase();
 	if(f.match('authentication accepted')){
-		ASTGUI.Log.Debug("Login Success result: " + f);
+		top.log.debug("Login Success result: " + f);
 		setLoggedIn( { welcome_redirect: false } );
 		DOM_secret.blur();
 		parent.ASTGUI.dialog.waitWhile(' <font color=#005119><b>Login Success</b></font>');
@@ -77,7 +77,7 @@
 		}
 		return;
 	}else if(f.match('authentication failed') ) {
-		ASTGUI.Log.Debug("Login failure result: " + f);
+		top.log.debug("Login failure result: " + f);
 		ASTGUI.feedback({msg:'Invalid Username or Password', showfor: 4, color:'#c42421'}) ;
 		DOM_secret.focus();
 		DOM_secret.select();

Modified: team/rbrindley/astman_revamp/config/sysinfo.html
URL: http://svn.digium.com/svn-view/asterisk-gui/team/rbrindley/astman_revamp/config/sysinfo.html?view=diff&rev=4570&r1=4569&r2=4570
==============================================================================
--- team/rbrindley/astman_revamp/config/sysinfo.html (original)
+++ team/rbrindley/astman_revamp/config/sysinfo.html Thu Mar  5 08:29:42 2009
@@ -58,7 +58,7 @@
 							try{
 								percentage_usage(output);
 							}catch(err){
-								ASTGUI.Log.Debug( '<B>Error Trying to calculate CF usage %');
+								top.log.debug( '<B>Error Trying to calculate CF usage %');
 							}
 						}
 						$('.hideall').hide();

Modified: team/rbrindley/astman_revamp/config/upload_abe_overlay.html
URL: http://svn.digium.com/svn-view/asterisk-gui/team/rbrindley/astman_revamp/config/upload_abe_overlay.html?view=diff&rev=4570&r1=4569&r2=4570
==============================================================================
--- team/rbrindley/astman_revamp/config/upload_abe_overlay.html (original)
+++ team/rbrindley/astman_revamp/config/upload_abe_overlay.html Thu Mar  5 08:29:42 2009
@@ -25,7 +25,7 @@
 
 var onUploadForm_load = function(){
 	if(!top.sessionData.httpConf.postmappings_defined || !top.sessionData.httpConf.uploadPaths['backups'] ){
-		ASTGUI.Log.Error('AG102');
+		top.log.error('AG102');
 		$('#uploadOVERLAY_iframe_container').hide();
 		return ;
 	}

Modified: team/rbrindley/astman_revamp/config/upload_form.html
URL: http://svn.digium.com/svn-view/asterisk-gui/team/rbrindley/astman_revamp/config/upload_form.html?view=diff&rev=4570&r1=4569&r2=4570
==============================================================================
--- team/rbrindley/astman_revamp/config/upload_form.html (original)
+++ team/rbrindley/astman_revamp/config/upload_form.html Thu Mar  5 08:29:42 2009
@@ -14,7 +14,7 @@
 
 function beforeupload(){
 	if(!frm.action){
-		parent.ASTGUI.Log.Error('AG101');
+		top.log.error('AG101');
 		alert('Aborting Upload : Error Code  AG101');
 		return;
 	}

Modified: team/rbrindley/astman_revamp/config/welcome.html
URL: http://svn.digium.com/svn-view/asterisk-gui/team/rbrindley/astman_revamp/config/welcome.html?view=diff&rev=4570&r1=4569&r2=4570
==============================================================================
--- team/rbrindley/astman_revamp/config/welcome.html (original)
+++ team/rbrindley/astman_revamp/config/welcome.html Thu Mar  5 08:29:42 2009
@@ -409,7 +409,7 @@
 				try{
 					percentage_usage(output);
 				}catch(err){
-					ASTGUI.Log.Debug( '<B>Error Trying to calculate CF usage %');
+					top.log.debug( '<B>Error Trying to calculate CF usage %');
 				}
 			}
 			break;




More information about the asterisk-gui-commits mailing list