rbrindley: branch 2.0 r4528 - /branches/2.0/config/js/welcome.js
SVN commits to the Asterisk-GUI project
asterisk-gui-commits at lists.digium.com
Fri Feb 27 10:11:02 CST 2009
Author: rbrindley
Date: Fri Feb 27 10:10:59 2009
New Revision: 4528
URL: http://svn.digium.com/svn-view/asterisk-gui?view=rev&rev=4528
Log:
- changed an alert in updateExtension to only run if DEBUG_MODE is set to true.
- also added a Log.Debug() msg when we encounter an unknown extension state.
Modified:
branches/2.0/config/js/welcome.js
Modified: branches/2.0/config/js/welcome.js
URL: http://svn.digium.com/svn-view/asterisk-gui/branches/2.0/config/js/welcome.js?view=diff&rev=4528&r1=4527&r2=4528
==============================================================================
--- branches/2.0/config/js/welcome.js (original)
+++ branches/2.0/config/js/welcome.js Fri Feb 27 10:10:59 2009
@@ -872,11 +872,14 @@
break;
default:
var state = 'Unknown';
- alert('updateExtension:\r\n'
- +'status: '+status.toString()+'\r\n'
- +'exten: '+exten.toString()+'\r\n'
- +'context: '+context.toString()+'\r\n'
- );
+ ASTGUI.Log.Debug("updateExtension :: We have encountered an unknown extension state of " + status.toString());
+ if ( top.sessionData.DEBUG_MODE ) {
+ alert('updateExtension:\r\n'
+ +'status: '+status.toString()+'\r\n'
+ +'exten: '+exten.toString()+'\r\n'
+ +'context: '+context.toString()+'\r\n'
+ );
+ }
break;
}
More information about the asterisk-gui-commits
mailing list