pari: branch 2.0 r3881 - /branches/2.0/config/js/pbx.js

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Wed Sep 24 18:35:37 CDT 2008


Author: pari
Date: Wed Sep 24 18:35:37 2008
New Revision: 3881

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

 Commenting out some other function not used anywhere else



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

Modified: branches/2.0/config/js/pbx.js
URL: http://svn.digium.com/view/asterisk-gui/branches/2.0/config/js/pbx.js?view=diff&rev=3881&r1=3880&r2=3881
==============================================================================
--- branches/2.0/config/js/pbx.js (original)
+++ branches/2.0/config/js/pbx.js Wed Sep 24 18:35:37 2008
@@ -650,33 +650,33 @@
 	},
 
 	/* returns an array based on a manager packet/response */
-	responseToArray: function(resp) {
-		var msgs = new Array();
-		var inmsg = 0;
-		var msgnum = 0;
-		var x,y;
-		var s = resp;
-		var allheaders = s.split('\r\n');
-		for (x=0;x<allheaders.length;x++) {
-			if (allheaders[x].length) {
-				var fields = allheaders[x].split(': ');
-				if (!inmsg) {
-					msgs[msgnum] = new Object();
-					msgs[msgnum].headers = {};
-					msgs[msgnum].names = new Array();
-					y=0;
-				}
-				msgs[msgnum].headers[fields[0].toLowerCase()] = allheaders[x].substr(fields[0].length +2);
-				msgs[msgnum].names[y++] = fields[0].toLowerCase();
-				inmsg=1;
-			} else {
-				if (inmsg) {
-					inmsg = 0;
-					msgnum++;
-				}
-			}
-		}
-	},
+// 	responseToArray: function(resp) {
+// 		var msgs = new Array();
+// 		var inmsg = 0;
+// 		var msgnum = 0;
+// 		var x,y;
+// 		var s = resp;
+// 		var allheaders = s.split('\r\n');
+// 		for (x=0;x<allheaders.length;x++) {
+// 			if (allheaders[x].length) {
+// 				var fields = allheaders[x].split(': ');
+// 				if (!inmsg) {
+// 					msgs[msgnum] = new Object();
+// 					msgs[msgnum].headers = {};
+// 					msgs[msgnum].names = new Array();
+// 					y=0;
+// 				}
+// 				msgs[msgnum].headers[fields[0].toLowerCase()] = allheaders[x].substr(fields[0].length +2);
+// 				msgs[msgnum].names[y++] = fields[0].toLowerCase();
+// 				inmsg=1;
+// 			} else {
+// 				if (inmsg) {
+// 					inmsg = 0;
+// 					msgnum++;
+// 				}
+// 			}
+// 		}
+// 	},
 
 	getUserDetails: function(user){ // returns an object with the specified user details, if the specified user is not found returns null ;
 		return sessionData.pbxinfo.users[user] || null ;




More information about the asterisk-gui-commits mailing list