[svn-commits] seanbright: branch 1.4 r192524 - /branches/1.4/static-http/astman.js

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue May 5 14:56:25 CDT 2009


Author: seanbright
Date: Tue May  5 14:56:11 2009
New Revision: 192524

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=192524
Log:
Fix Javascript error when using astman.js in Internet Explorer.

Internet Explorer (tested with 7.0) does not like trailing commas on constructs
like object initializers, so get rid of them to avoid some errors.

(closes issue #15026)
Reported by: rajnishgiri
Patches:
      bug15026.patch uploaded by seanbright (license 71)
Tested by: seanbright

Modified:
    branches/1.4/static-http/astman.js

Modified: branches/1.4/static-http/astman.js
URL: http://svn.asterisk.org/svn-view/asterisk/branches/1.4/static-http/astman.js?view=diff&rev=192524&r1=192523&r2=192524
==============================================================================
--- branches/1.4/static-http/astman.js (original)
+++ branches/1.4/static-http/astman.js Tue May  5 14:56:11 2009
@@ -238,7 +238,7 @@
 			onSuccess: this.managerResponse,
 			onFailure: function(t) {
 				alert("Error: " + t.status + ": " + t.statusText);
-			},
+			}
 		};
 		me.callback = callback;
 		opt.parameters = request;
@@ -252,7 +252,7 @@
 			onSuccess: this.eventResponse,
 			onFailure: function(t) {
 				alert("Event Error: " + t.status + ": " + t.statusText);
-			},
+			}
 		};
 		opt.parameters="action=waitevent";
 		tmp = new Ajax.Request(this.url, opt);




More information about the svn-commits mailing list