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

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Thu Mar 26 11:02:08 CDT 2009


Author: rbrindley
Date: Thu Mar 26 11:02:07 2009
New Revision: 4665

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

- if a type is undefined, lets just list em all instead of returning null


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

Modified: team/rbrindley/astman_revamp/config/js/pbx2.js
URL: http://svn.digium.com/svn-view/asterisk-gui/team/rbrindley/astman_revamp/config/js/pbx2.js?view=diff&rev=4665&r1=4664&r2=4665
==============================================================================
--- team/rbrindley/astman_revamp/config/js/pbx2.js (original)
+++ team/rbrindley/astman_revamp/config/js/pbx2.js Thu Mar 26 11:02:07 2009
@@ -1381,8 +1381,8 @@
 pbx.trunks.list = function(types) {
 	var trunks = [];
 	if (typeof types === 'undefined') {
-		top.log.warn('pbx.trunks.list: types is undefined');
-		return null;
+		top.log.warn('pbx.trunks.list: types is undefined, listing all instead.');
+		types.all = true;
 	}
 
 	if (types.all) {




More information about the asterisk-gui-commits mailing list