pari: trunk r480 - /trunk/config/scripts/astman.js

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Fri Mar 23 23:31:19 MST 2007


Author: pari
Date: Sat Mar 24 01:31:18 2007
New Revision: 480

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=480
Log:
minor fix in toJSON()

Modified:
    trunk/config/scripts/astman.js

Modified: trunk/config/scripts/astman.js
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/scripts/astman.js?view=diff&rev=480&r1=479&r2=480
==============================================================================
--- trunk/config/scripts/astman.js (original)
+++ trunk/config/scripts/astman.js Sat Mar 24 01:31:18 2007
@@ -156,7 +156,10 @@
 			catname = catname.replace(/^\s*|\s*$/g,'') ; // trim 
 			a[ catno ] = { };
 			a[ catno ].categoryname = catname  ;
-			a[ catno ].subfields = [ ] ;
+			if(!p)
+				a[ catno ].subfields = [] ;
+			else
+				a[ catno ].subfields = {} ;
 		}else if ( h == "line" ){
 			var j = t[r].indexOf(":") ;
 			var subfield = t[r].substr(j+1) ; // subfield



More information about the asterisk-gui-commits mailing list