diff --git a/zephyr/static/js/ui.js b/zephyr/static/js/ui.js index cb770f6ed7..d45959ddea 100644 --- a/zephyr/static/js/ui.js +++ b/zephyr/static/js/ui.js @@ -1011,11 +1011,12 @@ exports.get_count = function (type, name) { }; exports.set_count = function (type, name, count) { - var count_span = exports.get_filter_li(type, name).find('.count'); + var encoded = encodeURIComponent(name); + var count_span = exports.get_filter_li(type, encoded).find('.count'); var value_span = count_span.find('.value'); if (count === 0) { - return exports.clear_count(type, name); + return exports.clear_count(type, encoded); } count_span.show();