pari: branch 2.0 r4483 - /branches/2.0/config/js/index.js
SVN commits to the Asterisk-GUI project
asterisk-gui-commits at lists.digium.com
Tue Jan 27 16:34:39 CST 2009
Author: pari
Date: Tue Jan 27 16:34:38 2009
New Revision: 4483
URL: http://svn.digium.com/svn-view/asterisk-gui?view=rev&rev=4483
Log:
Warn about manager access
Modified:
branches/2.0/config/js/index.js
Modified: branches/2.0/config/js/index.js
URL: http://svn.digium.com/svn-view/asterisk-gui/branches/2.0/config/js/index.js?view=diff&rev=4483&r1=4482&r2=4483
==============================================================================
--- branches/2.0/config/js/index.js (original)
+++ branches/2.0/config/js/index.js Tue Jan 27 16:34:38 2009
@@ -292,8 +292,12 @@
var resp = s.getResponseHeader("Server");
onLogInFunctions.setGUI_Paths();
onLogInFunctions.detectPlatform(resp); // <-- PLATFORM Detection
-
- if(s.responseText.toLowerCase().match('pong')){
+ var stlc = s.responseText.toLowerCase() ;
+ if( stlc.contains('404 not found') && stlc.contains('the requested url was not found on this server') ){
+ ASTGUI.dialog.alertmsg("Please enable manager access. <BR><BR>Most often you should be able to do that by setting 'enable = yes' in manager.conf under the [general] context, and reloading asterisk.");
+ return;
+ }
+ if( stlc.match('pong') ){
ASTGUI.Log.Debug('Got PONG , session is active');
$('div.ui-accordion-link:eq(0)')[0].innerHTML = 'System Status';
More information about the asterisk-gui-commits
mailing list