pari: branch asterisknow r895 - in /branches/asterisknow: ./ config/ config/s...

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Tue May 8 10:22:00 MST 2007


Author: pari
Date: Tue May  8 12:22:00 2007
New Revision: 895

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=895
Log:
Merged revisions 887-888 via svnmerge from 
https://origsvn.digium.com/svn/asterisk-gui/trunk

........
r887 | pari | 2007-05-07 11:39:36 -0500 (Mon, 07 May 2007) | 1 line

If session timed out during keepPinging, then show login page
........
r888 | pari | 2007-05-07 13:43:01 -0500 (Mon, 07 May 2007) | 1 line

Fixing postion of gui_alert
........

Modified:
    branches/asterisknow/   (props changed)
    branches/asterisknow/config/cfgbasic.html
    branches/asterisknow/config/guialert.html
    branches/asterisknow/config/scripts/astman.js

Propchange: branches/asterisknow/
------------------------------------------------------------------------------
--- svnmerge-integrated (original)
+++ svnmerge-integrated Tue May  8 12:22:00 2007
@@ -1,1 +1,1 @@
-/trunk:1-449,489-540,542-557,559,561-577,580-586,588-883
+/trunk:1-449,489-540,542-557,559,561-577,580-586,588-894

Modified: branches/asterisknow/config/cfgbasic.html
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/cfgbasic.html?view=diff&rev=895&r1=894&r2=895
==============================================================================
--- branches/asterisknow/config/cfgbasic.html (original)
+++ branches/asterisknow/config/cfgbasic.html Tue May  8 12:22:00 2007
@@ -59,10 +59,10 @@
 		parameters: "action=ping",
 		asynchronous: true,
 		onComplete: function(t){
-			//if( t.responseText.match("Authentication failed") || t.responseText =="" ){
-			//	window.clearInterval(keepPinging);
-			//}
-			// For some reason, I could not get clearInterval to work. I will fix this soon. - pari
+			if( t.responseText.match(asterisk_guipingerror) ){
+				window.location.href=window.location.href;
+			}
+			
 		}
 	};
 	tmp = new Ajax.Request( asterisk_rawmanPath, opt);

Modified: branches/asterisknow/config/guialert.html
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/guialert.html?view=diff&rev=895&r1=894&r2=895
==============================================================================
--- branches/asterisknow/config/guialert.html (original)
+++ branches/asterisknow/config/guialert.html Tue May  8 12:22:00 2007
@@ -18,7 +18,8 @@
 <head>
 </head>
 <body onload="update()" topmargin=0 leftmargin=0 style="background-color: transparent; cursor: not-allowed">
-	<div id="div_alert" STYLE="display:none; position: absolute; left: 260; top: 180; width:360;  background-color:#FFFFFF; border-width: 2px; border-color: #7E5538; border-style: solid; background-style: solid; cursor: default">
+<table width="100%" height="570" align=center border=0><tr><td valign="middle" align=center>
+	<div id="div_alert" STYLE="display:none; width:360;  background-color:#FFFFFF; border-width: 2px; border-color: #7E5538; border-style: solid; background-style: solid; cursor: default">
 		<table width="100%" cellpadding=0 cellspacing=0>
 		<TR bgcolor="#7E5538"  style="background-image:url('images/title_gradient.gif');">
 				<TD Height="20" align="center">
@@ -41,4 +42,5 @@
 		</TR>
 		</TABLE>
 	</div>
+</td></tr></table>
 </body>

Modified: branches/asterisknow/config/scripts/astman.js
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/scripts/astman.js?view=diff&rev=895&r1=894&r2=895
==============================================================================
--- branches/asterisknow/config/scripts/astman.js (original)
+++ branches/asterisknow/config/scripts/astman.js Tue May  8 12:22:00 2007
@@ -20,6 +20,7 @@
  */
 
 var sc_displaytime = 1000;
+var asterisk_guipingerror = "Message: Authentication Required";
 var asterisk_guiappname =  "Asterisk GUI (Beta)";
 var asterisk_guitools = "asterisk_guitools";
 var asterisk_guitoolsversion = "0.7";
@@ -1603,7 +1604,7 @@
 		me.eventcallback(msgs);
 	};
 	this.eventResponse = function(t) {
-		if( t.responseText.match("Message: Authentication Required") ){		
+		if( t.responseText.match(asterisk_guipingerror) ){		
 				parent.window.location.href = parent.window.location.href ;
 		}
 		var _nu = navigator.userAgent; 



More information about the asterisk-gui-commits mailing list