From: Sean Bright Date: Tue, 5 May 2009 19:56:11 +0000 (+0000) Subject: Fix Javascript error when using astman.js in Internet Explorer. X-Git-Tag: 1.4.25-rc1~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c489a2f6a3ee097b9b55a8e43e0544d1fcc140e9;p=thirdparty%2Fasterisk.git 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 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@192524 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/static-http/astman.js b/static-http/astman.js index 81f896c1c7..e00a2e0554 100644 --- a/static-http/astman.js +++ b/static-http/astman.js @@ -238,7 +238,7 @@ function Astman() { onSuccess: this.managerResponse, onFailure: function(t) { alert("Error: " + t.status + ": " + t.statusText); - }, + } }; me.callback = callback; opt.parameters = request; @@ -252,7 +252,7 @@ function Astman() { onSuccess: this.eventResponse, onFailure: function(t) { alert("Event Error: " + t.status + ": " + t.statusText); - }, + } }; opt.parameters="action=waitevent"; tmp = new Ajax.Request(this.url, opt);