From 1fdb586c13cffb1c0638460d60115c838e9f27cd Mon Sep 17 00:00:00 2001 From: Leo Franchi Date: Mon, 27 Jan 2014 11:16:26 -0500 Subject: [PATCH] Make sure then_select_id is a number to call .toFixed() (imported from commit 58635110c737ccb38e74cce8b4feb5d93dfbf5cc) --- static/js/narrow.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/narrow.js b/static/js/narrow.js index 86f0bf03ba..6d5934c978 100644 --- a/static/js/narrow.js +++ b/static/js/narrow.js @@ -149,11 +149,11 @@ exports.activate = function (operators, opts) { trigger: 'unknown' }); if (filter.has_operator("near")) { - opts.then_select_id = filter.operands("near")[0]; + opts.then_select_id = parseInt(filter.operands("near")[0], 10); opts.select_first_unread = false; } if (filter.has_operator("id")) { - opts.then_select_id = filter.operands("id")[0]; + opts.then_select_id = parseInt(filter.operands("id")[0], 10); opts.select_first_unread = false; }