From fa1151c8ed521e3317b43ce1cbb86ebf7da58e2c Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Thu, 18 Jul 2013 16:12:49 -0400 Subject: [PATCH] Export narrow.unparse() (imported from commit dfee6523b5fd71a789b89c0c6c65a1d353e35046) --- zephyr/static/js/narrow.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zephyr/static/js/narrow.js b/zephyr/static/js/narrow.js index 3d6ae5d5f5..437beb4de0 100644 --- a/zephyr/static/js/narrow.js +++ b/zephyr/static/js/narrow.js @@ -250,7 +250,7 @@ function decodeOperand(encoded) { These are not keys in a JavaScript object, because we might need to support multiple operators of the same type. */ -function unparse(operators) { +exports.unparse = function (operators) { var parts = []; $.each(operators, function (index, elem) { var operator = elem[0]; @@ -264,7 +264,7 @@ function unparse(operators) { } }); return parts.join(' '); -} +}; // Collect operators which appear only once into an object, // and discard those which appear more than once. @@ -470,7 +470,7 @@ exports.activate = function (operators, opts) { hashchange.save_narrow(operators); // Put the narrow operators in the search bar. - $('#search_query').val(unparse(operators)); + $('#search_query').val(exports.unparse(operators)); search.update_button_visibility(); compose.update_recipient_on_narrow(); compose.update_faded_messages();