bkruse: branch 2.0 r3958 - /branches/2.0/config/js/index.js

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Wed Oct 15 18:08:53 CDT 2008


Author: bkruse
Date: Wed Oct 15 18:08:52 2008
New Revision: 3958

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=3958
Log:
Tell getChunksFromManager to return to us an object, not an array.
(closes issue #13695) great find sumo.

Modified:
    branches/2.0/config/js/index.js

Modified: branches/2.0/config/js/index.js
URL: http://svn.digium.com/view/asterisk-gui/branches/2.0/config/js/index.js?view=diff&rev=3958&r1=3957&r2=3958
==============================================================================
--- branches/2.0/config/js/index.js (original)
+++ branches/2.0/config/js/index.js Wed Oct 15 18:08:52 2008
@@ -451,7 +451,7 @@
 		var raw_chan_status = makeSyncRequest ( { action :'status' } );
 		var to_return = [];
 		try {
-			var chunks = ASTGUI.miscFunctions.getChunksFromManagerOutput( raw_chan_status.trim().replace(/Event: StatusComplete/, "") ) ;
+			var chunks = ASTGUI.miscFunctions.getChunksFromManagerOutput( raw_chan_status.trim().replace(/Event: StatusComplete/, ""), true) ;
 			while( chunks.length ){
 				if( chunks[0].hasOwnProperty('Channel') ){
 					to_return.push(chunks[0]);




More information about the asterisk-gui-commits mailing list