From 2e4659df249f74b72f3a1ac9b04d52086d26f520 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Wed, 7 Apr 2010 16:30:11 -0600 Subject: [PATCH] Bug #8952: Fix casting spam parameter to number --- imp/js/DimpBase.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imp/js/DimpBase.js b/imp/js/DimpBase.js index 233474719..ff9cd9757 100644 --- a/imp/js/DimpBase.js +++ b/imp/js/DimpBase.js @@ -2713,7 +2713,7 @@ var DimpBase = { reportSpam: function(spam, opts) { opts = opts || {}; - if (this._doMsgAction('reportSpam', opts, { spam: spam })) { + if (this._doMsgAction('reportSpam', opts, { spam: Number(spam) })) { // Indicate to the user that something is happening (since spam // reporting may not be instantaneous). this.loadingImg('viewport', true); -- 2.11.0