diff --git a/zephyr/static/js/ui.js b/zephyr/static/js/ui.js index 13cd9157f1..24a481fc1f 100644 --- a/zephyr/static/js/ui.js +++ b/zephyr/static/js/ui.js @@ -988,7 +988,7 @@ $(function () { $('#stream_filters li').on('click', 'a', function (e) { var stream = $(e.target).parents('li').data('name'); - narrow.by('stream', decodeURIComponent(stream), {select_first_unread: true}); + narrow.by('stream', stream, {select_first_unread: true}); e.preventDefault(); }); @@ -998,8 +998,7 @@ function sort_narrow_list() { var items = $('#stream_filters li').get(); var parent = $('#stream_filters'); items.sort(function(a,b){ - return decodeURIComponent($(a).attr('data-name')).localeCompare( - decodeURIComponent($(b).attr('data-name'))); + return $(a).attr('data-name').localeCompare($(b).attr('data-name')); }); parent.empty(); @@ -1047,7 +1046,7 @@ exports.add_narrow_filter = function(name, type, uri) { var swatch = $('').attr('id', "stream_sidebar_swatch_" + subs.stream_id(name)) .addClass('streamlist_swatch') .css('background-color', subs.get_color(name)).html(" "); - list_item = $('