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

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Tue Mar 24 12:46:29 CDT 2009


Author: rbrindley
Date: Tue Mar 24 12:46:26 2009
New Revision: 4652

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

- silly, don't call a function that doesn't exist!


Modified:
    team/rbrindley/astman_revamp/config/js/astman.js

Modified: team/rbrindley/astman_revamp/config/js/astman.js
URL: http://svn.digium.com/svn-view/asterisk-gui/team/rbrindley/astman_revamp/config/js/astman.js?view=diff&rev=4652&r1=4651&r2=4652
==============================================================================
--- team/rbrindley/astman_revamp/config/js/astman.js (original)
+++ team/rbrindley/astman_revamp/config/js/astman.js Tue Mar 24 12:46:26 2009
@@ -2332,6 +2332,10 @@
 		//	Execute a Unix system command
 		top.log.debug("Executing System Command : '" + cmd + "'");
 		var delay_cb = function(){
+			if (typeof callbackfunction !== 'function') {
+				return;
+			}
+
 			if( parent.sessionData.PLATFORM.isAA50 ){
 				setTimeout( callbackfunction , 500 );
 			}else{




More information about the asterisk-gui-commits mailing list